Update linter
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
fd7daf4a31
commit
71dfa38032
@ -17,6 +17,7 @@ workflows:
|
||||
ci:
|
||||
jobs:
|
||||
- go/lint:
|
||||
golangci-lint-version: 1.17.1
|
||||
executor: go/circleci-golang
|
||||
- go/test:
|
||||
executor: go/circleci-golang
|
||||
|
@ -2,7 +2,7 @@ linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- vet
|
||||
- gofmt
|
||||
- goimports
|
||||
- misspell
|
||||
- goconst
|
||||
- golint
|
||||
@ -13,6 +13,7 @@ linters:
|
||||
- varcheck
|
||||
- structcheck
|
||||
- deadcode
|
||||
- scopelint
|
||||
|
||||
|
||||
issues:
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
// can't really be identified by the returned type
|
||||
type special struct{ id int }
|
||||
|
||||
// nolint
|
||||
//nolint:golint
|
||||
var (
|
||||
DefaultTransportsKey = special{0} // Libp2p option
|
||||
PNetKey = special{1} // Option + multiret
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
logging "github.com/ipfs/go-log"
|
||||
"github.com/libp2p/go-libp2p"
|
||||
"github.com/libp2p/go-libp2p-connmgr"
|
||||
connmgr "github.com/libp2p/go-libp2p-connmgr"
|
||||
"github.com/libp2p/go-libp2p-core/crypto"
|
||||
"github.com/libp2p/go-libp2p-core/peer"
|
||||
"github.com/libp2p/go-libp2p-core/peerstore"
|
||||
|
Loading…
Reference in New Issue
Block a user