style: add gci linter (#16605)

This commit is contained in:
Jacob Gadikian
2023-06-22 15:35:51 +00:00
committed by GitHub
parent 5de6710803
commit 6afece635c
617 changed files with 1243 additions and 1104 deletions
+2 -1
View File
@@ -9,7 +9,6 @@ import (
"sync"
"time"
"cosmossdk.io/log"
tmrpcserver "github.com/cometbft/cometbft/rpc/jsonrpc/server"
gateway "github.com/cosmos/gogogateway"
"github.com/gorilla/handlers"
@@ -18,6 +17,8 @@ import (
"github.com/improbable-eng/grpc-web/go/grpcweb"
"google.golang.org/grpc"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec/legacy"
"github.com/cosmos/cosmos-sdk/server/config"
+1
View File
@@ -4,6 +4,7 @@ import (
"context"
abci "github.com/cometbft/cometbft/abci/types"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
)
+2 -1
View File
@@ -5,7 +5,6 @@ import (
"strconv"
"strings"
"cosmossdk.io/log"
cmtcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/light"
"github.com/cometbft/cometbft/node"
@@ -19,6 +18,8 @@ import (
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
rpc "github.com/cosmos/cosmos-sdk/client/rpc"
+1 -2
View File
@@ -4,9 +4,8 @@ import (
"path/filepath"
"testing"
"github.com/stretchr/testify/require"
dbm "github.com/cosmos/cosmos-db"
"github.com/stretchr/testify/require"
)
func Test_openDB(t *testing.T) {
+6 -4
View File
@@ -10,11 +10,16 @@ import (
"testing"
"time"
"cosmossdk.io/log"
cmtcfg "github.com/cometbft/cometbft/config"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
cmttypes "github.com/cometbft/cometbft/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/rs/zerolog"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/server"
"github.com/cosmos/cosmos-sdk/server/types"
@@ -22,9 +27,6 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/rs/zerolog"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"
)
// ExportSystem wraps a (*cmdtest).System
+1 -2
View File
@@ -6,10 +6,9 @@ import (
"testing"
"time"
"github.com/jhump/protoreflect/grpcreflect"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/jhump/protoreflect/grpcreflect"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
+2 -1
View File
@@ -1,8 +1,9 @@
package server
import (
"cosmossdk.io/log"
cmtlog "github.com/cometbft/cometbft/libs/log"
"cosmossdk.io/log"
)
var _ cmtlog.Logger = (*CometLoggerWrapper)(nil)
+1 -1
View File
@@ -12,8 +12,8 @@ import (
"google.golang.org/grpc"
"cosmossdk.io/log"
storetypes "cosmossdk.io/store/types"
bam "github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/testutil"
+2 -1
View File
@@ -6,10 +6,11 @@ import (
"testing"
"time"
"cosmossdk.io/log"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/stretchr/testify/require"
"cosmossdk.io/log"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
+2 -3
View File
@@ -4,17 +4,16 @@ import (
"bytes"
"fmt"
bankv1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1"
protov2 "google.golang.org/protobuf/proto"
"github.com/cosmos/cosmos-sdk/x/auth/signing"
bankv1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1"
errorsmod "cosmossdk.io/errors"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
txsigning "github.com/cosmos/cosmos-sdk/types/tx/signing"
"github.com/cosmos/cosmos-sdk/x/auth/signing"
)
// An sdk.Tx which is its own sdk.Msg.
+2 -1
View File
@@ -9,7 +9,6 @@ import (
"os"
"runtime/pprof"
pruningtypes "cosmossdk.io/store/pruning/types"
"github.com/armon/go-metrics"
"github.com/cometbft/cometbft/abci/server"
cmtcmd "github.com/cometbft/cometbft/cmd/cometbft/commands"
@@ -27,6 +26,8 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
pruningtypes "cosmossdk.io/store/pruning/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/codec"
+4 -3
View File
@@ -4,15 +4,16 @@ import (
"encoding/json"
"io"
"cosmossdk.io/log"
"cosmossdk.io/store/snapshots"
storetypes "cosmossdk.io/store/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
cmttypes "github.com/cometbft/cometbft/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/gogoproto/grpc"
"github.com/spf13/cobra"
"cosmossdk.io/log"
"cosmossdk.io/store/snapshots"
storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/server/api"
"github.com/cosmos/cosmos-sdk/server/config"