Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Mar 27, 2024
1 parent d458cab commit cd88f7d
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ linters-settings:
- prefix(github.com/cosmos/ibc-go)
- prefix(github.com/CosmWasm/wasmd)
- prefix(github.com/Finschia/finschia-sdk)
- prefix(github.com/Finschia/finschia)

run:
# default concurrency is a available CPU number
Expand Down
3 changes: 2 additions & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package app
import (
"testing"

"github.com/Finschia/finschia/v3/app/params"
dbm "github.com/cosmos/cosmos-db"

"cosmossdk.io/log"

simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"

"github.com/Finschia/finschia/v3/app/params"
)

// MakeEncodingConfig creates a new EncodingConfig with all modules registered. For testing only
Expand Down
8 changes: 4 additions & 4 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ package app
import (
"fmt"

"github.com/Finschia/finschia/v3/app/upgrades"
"github.com/Finschia/finschia/v3/app/upgrades/noop"
v050 "github.com/Finschia/finschia/v3/app/upgrades/v050"

upgradetypes "cosmossdk.io/x/upgrade/types"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand All @@ -24,6 +20,10 @@ import (

v2 "github.com/CosmWasm/wasmd/x/wasm/migrations/v2"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

"github.com/Finschia/finschia/v3/app/upgrades"
"github.com/Finschia/finschia/v3/app/upgrades/noop"
v050 "github.com/Finschia/finschia/v3/app/upgrades/v050"
)

// Upgrades list of chain upgrades
Expand Down
4 changes: 2 additions & 2 deletions app/upgrades/noop/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package noop
import (
"context"

"github.com/Finschia/finschia/v3/app/upgrades"

storetypes "cosmossdk.io/store/types"
upgradetypes "cosmossdk.io/x/upgrade/types"

"github.com/cosmos/cosmos-sdk/types/module"

"github.com/Finschia/finschia/v3/app/upgrades"
)

// NewUpgrade constructor
Expand Down
4 changes: 2 additions & 2 deletions app/upgrades/v050/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package v050
import (
"context"

"github.com/Finschia/finschia/v3/app/upgrades"

storetypes "cosmossdk.io/store/types"
circuittypes "cosmossdk.io/x/circuit/types"
upgradetypes "cosmossdk.io/x/upgrade/types"

"github.com/cosmos/cosmos-sdk/types/module"

"github.com/Finschia/finschia/v3/app/upgrades"
)

// UpgradeName defines the on-chain upgrade name
Expand Down
3 changes: 2 additions & 1 deletion cmd/fnsad/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"io"
"os"

"github.com/Finschia/finschia/v3/app"
cmtcfg "github.com/cometbft/cometbft/config"
dbm "github.com/cosmos/cosmos-db"
"github.com/prometheus/client_golang/prometheus"
Expand Down Expand Up @@ -39,6 +38,8 @@ import (
wasmcli "github.com/CosmWasm/wasmd/x/wasm/client/cli"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

"github.com/Finschia/finschia/v3/app"
)

// initCometBFTConfig helps to override default CometBFT Config values.
Expand Down
4 changes: 2 additions & 2 deletions cmd/fnsad/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package main
import (
"os"

"github.com/Finschia/finschia/v3/app"

"cosmossdk.io/log"

svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"github.com/Finschia/finschia/v3/app"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions cmd/fnsad/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package main
import (
"os"

"github.com/Finschia/finschia/v3/app"
"github.com/Finschia/finschia/v3/app/params"
dbm "github.com/cosmos/cosmos-db"
"github.com/spf13/cobra"

Expand All @@ -24,6 +22,9 @@ import (

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

"github.com/Finschia/finschia/v3/app"
"github.com/Finschia/finschia/v3/app/params"
)

// NewRootCmd creates a new root command for wasmd. It is called once in the
Expand Down
3 changes: 2 additions & 1 deletion cmd/fnsad/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"path/filepath"
"time"

"github.com/Finschia/finschia/v3/app"
cmtconfig "github.com/cometbft/cometbft/config"
cmttime "github.com/cometbft/cometbft/types/time"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -39,6 +38,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

"github.com/Finschia/finschia/v3/app"
)

var (
Expand Down

0 comments on commit cd88f7d

Please sign in to comment.