Skip to content

Commit

Permalink
golangci: refine config for linter
Browse files Browse the repository at this point in the history
CaraWang committed Dec 5, 2022
1 parent bbf438d commit 58de6f3
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -14,43 +14,8 @@ run:

linters:
enable:
- goconst
- goimports
- misspell
- unconvert
- bodyclose
- containedctx
- contextcheck
- decorder
- durationcheck
- errchkjson
- errname
- exhaustive
- exportloopref
- gocognit
- gofmt
# - gomnd
- gomoddirectives
- gosec
- makezero
- nestif
- nilerr
- nilnil
- noctx
#- nosprintfhostport # TODO: do we use IPv6?
- paralleltest
- prealloc
- predeclared
#- promlinter
#- revive
# - tagliatelle
- tenv
- thelper
- tparallel
- unconvert
- unparam
- wsl
#- errorlint causes stack overflow. TODO: recheck after each golangci update
disable-all: true

linters-settings:
gofmt:
@@ -167,6 +132,7 @@ issues:
- unused
- deadcode
- gocritic
- errcheck
- path: cmd/devp2p
linters:
- gosec
@@ -184,4 +150,4 @@ issues:
max-issues-per-linter: 0
max-same-issues: 0
#new: true
new-from-rev: origin/master
new-from-rev: origin/master

0 comments on commit 58de6f3

Please sign in to comment.