Skip to content

Commit

Permalink
Configure local-prefix for goimports linter (cosmos#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzdybal authored Oct 14, 2022
1 parent 70915f2 commit e3bca08
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ linters-settings:
rules:
- name: package-comments
disabled: true
goimports:
local-prefixes: github.com/celestiaorg
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"encoding/hex"
"time"

"github.com/celestiaorg/rollmint/types"
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/celestiaorg/rollmint/types"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"testing"
"time"

"github.com/celestiaorg/rollmint/types"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"

"github.com/celestiaorg/rollmint/types"
)

func TestViperAndCobra(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion conv/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/celestiaorg/rollmint/config"
tmcfg "github.com/tendermint/tendermint/config"

"github.com/celestiaorg/rollmint/config"
)

func TestGetNodeConfig(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion da/grpc/mockserv/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"os"
"strconv"

tmlog "github.com/tendermint/tendermint/libs/log"

grpcda "github.com/celestiaorg/rollmint/da/grpc"
"github.com/celestiaorg/rollmint/da/grpc/mockserv"
"github.com/celestiaorg/rollmint/store"
tmlog "github.com/tendermint/tendermint/libs/log"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion da/test/da_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"github.com/stretchr/testify/require"
"google.golang.org/grpc"

tmlog "github.com/tendermint/tendermint/libs/log"

"github.com/celestiaorg/rollmint/da"
"github.com/celestiaorg/rollmint/da/celestia"
cmock "github.com/celestiaorg/rollmint/da/celestia/mock"
Expand All @@ -23,7 +25,6 @@ import (
"github.com/celestiaorg/rollmint/log/test"
"github.com/celestiaorg/rollmint/store"
"github.com/celestiaorg/rollmint/types"
tmlog "github.com/tendermint/tendermint/libs/log"
)

const mockDaBlockTime = 100 * time.Millisecond
Expand Down
3 changes: 2 additions & 1 deletion rpc/json/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import (

tmjson "github.com/tendermint/tendermint/libs/json"

"github.com/celestiaorg/rollmint/log"
"github.com/gorilla/rpc/v2"
"github.com/gorilla/rpc/v2/json2"

"github.com/celestiaorg/rollmint/log"
)

type handler struct {
Expand Down
3 changes: 2 additions & 1 deletion store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
tmstate "github.com/tendermint/tendermint/proto/tendermint/state"
tmtypes "github.com/tendermint/tendermint/types"

"github.com/celestiaorg/rollmint/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/celestiaorg/rollmint/types"
)

func TestStoreHeight(t *testing.T) {
Expand Down

0 comments on commit e3bca08

Please sign in to comment.