Closed rootulp closed 1 year ago
Marking this as won't do b/c this repo already enabled stylecheck in https://github.com/celestiaorg/celestia-app/pull/2005 so if duplicated-imports
is enabled for revive, two linters will complain for the same issue:
$ make lint
--> Running golangci-lint
pkg/shares/split_sparse_shares_test.go:9:2: duplicated-imports: Package "github.com/celestiaorg/celestia-app/pkg/namespace" already imported (revive)
appns "github.com/celestiaorg/celestia-app/pkg/namespace"
^
pkg/shares/split_sparse_shares_test.go:8:2: ST1019: package "github.com/celestiaorg/celestia-app/pkg/namespace" is being imported more than once (stylecheck)
app_ns "github.com/celestiaorg/celestia-app/pkg/namespace"
^
make: *** [lint] Error 1
Context
Revive doesn't catch duplicate imports by default
Problem
If a dependency is imported twice with different names, revive won't warn you
Proposal