Skip to content

Commit

Permalink
fix: make format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zemyblue committed Mar 6, 2024
1 parent 2b4394c commit f1b4b30
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ lint:
format:
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs -n1 goimports-reviser -rm-unused -set-alias -project-name "github.com/Finschia/finschia/" -company-prefixes "github.com/Finschia/"
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs -n1 goimports-reviser -rm-unused -set-alias -project-name "github.com/Finschia/finschia-proxy/" -company-prefixes "github.com/Finschia/"

.PHONY: lint format

Expand Down
2 changes: 1 addition & 1 deletion ante/testutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"testing"

wasmtypes "github.com/Finschia/wasmd/x/wasm/types"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

Expand All @@ -20,6 +19,7 @@ import (
xauthsigning "github.com/Finschia/finschia-sdk/x/auth/signing"
authtypes "github.com/Finschia/finschia-sdk/x/auth/types"
minttypes "github.com/Finschia/finschia-sdk/x/mint/types"
wasmtypes "github.com/Finschia/wasmd/x/wasm/types"

proxyante "github.com/Finschia/finschia-proxy/v3/ante"
linkapp "github.com/Finschia/finschia-proxy/v3/app"
Expand Down
3 changes: 2 additions & 1 deletion ante/txfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"regexp"
"strings"

"github.com/spf13/cast"

servertypes "github.com/Finschia/finschia-sdk/server/types"
sdk "github.com/Finschia/finschia-sdk/types"
wasmtypes "github.com/Finschia/wasmd/x/wasm/types"
"github.com/spf13/cast"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion ante/txfilter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package ante_test
import (
"testing"

"github.com/stretchr/testify/require"

cryptotypes "github.com/Finschia/finschia-sdk/crypto/types"
"github.com/Finschia/finschia-sdk/testutil/testdata"
sdk "github.com/Finschia/finschia-sdk/types"
banktypes "github.com/Finschia/finschia-sdk/x/bank/types"
stakingtypes "github.com/Finschia/finschia-sdk/x/staking/types"
wasmtypes "github.com/Finschia/wasmd/x/wasm/types"
lbmwasmtypes "github.com/Finschia/wasmd/x/wasmplus/types"
"github.com/stretchr/testify/require"

"github.com/Finschia/finschia-proxy/v3/ante"
linkhelper "github.com/Finschia/finschia-proxy/v3/app/helpers"
Expand Down
10 changes: 5 additions & 5 deletions cli_test/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ import (
"testing"
"time"

ostcfg "github.com/Finschia/ostracon/config"
ostlog "github.com/Finschia/ostracon/libs/log"
ostrand "github.com/Finschia/ostracon/libs/rand"
"github.com/Finschia/ostracon/node"
ostclient "github.com/Finschia/ostracon/rpc/client"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
"google.golang.org/grpc"
Expand All @@ -44,6 +39,11 @@ import (
banktypes "github.com/Finschia/finschia-sdk/x/bank/types"
"github.com/Finschia/finschia-sdk/x/genutil"
stakingtypes "github.com/Finschia/finschia-sdk/x/staking/types"
ostcfg "github.com/Finschia/ostracon/config"
ostlog "github.com/Finschia/ostracon/libs/log"
ostrand "github.com/Finschia/ostracon/libs/rand"
"github.com/Finschia/ostracon/node"
ostclient "github.com/Finschia/ostracon/rpc/client"

lbmcmd "github.com/Finschia/finschia-proxy/v3/cmd/fnsad-proxy/cmd"
)
Expand Down
15 changes: 7 additions & 8 deletions cli_test/network/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import (
"path/filepath"
"time"

"github.com/Finschia/finschia-sdk/server/api"
servergrpc "github.com/Finschia/finschia-sdk/server/grpc"
srvtypes "github.com/Finschia/finschia-sdk/server/types"
authtypes "github.com/Finschia/finschia-sdk/x/auth/types"
banktypes "github.com/Finschia/finschia-sdk/x/bank/types"
"github.com/Finschia/finschia-sdk/x/genutil"
genutiltypes "github.com/Finschia/finschia-sdk/x/genutil/types"
ostos "github.com/Finschia/ostracon/libs/os"
"github.com/Finschia/ostracon/node"
"github.com/Finschia/ostracon/p2p"
Expand All @@ -13,14 +20,6 @@ import (
"github.com/Finschia/ostracon/rpc/client/local"
"github.com/Finschia/ostracon/types"
osttime "github.com/Finschia/ostracon/types/time"

"github.com/Finschia/finschia-sdk/server/api"
servergrpc "github.com/Finschia/finschia-sdk/server/grpc"
srvtypes "github.com/Finschia/finschia-sdk/server/types"
authtypes "github.com/Finschia/finschia-sdk/x/auth/types"
banktypes "github.com/Finschia/finschia-sdk/x/bank/types"
"github.com/Finschia/finschia-sdk/x/genutil"
genutiltypes "github.com/Finschia/finschia-sdk/x/genutil/types"
)

func startInProcess(cfg Config, val *Validator) error {
Expand Down

0 comments on commit f1b4b30

Please sign in to comment.