Skip to content

Commit

Permalink
golangci-lint: add more linters
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Sep 2, 2022
1 parent 77a1522 commit 2a467c4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ linters:
- deadcode
- depguard
- dogsled
- errchkjson
- exportloopref # Checks for pointers to enclosing loop variables
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
Expand All @@ -14,12 +17,22 @@ linters:
- megacheck
- misspell
- nakedret
- nolintlint
# - paralleltest
# - predeclared
- reassign
- revive
- staticcheck
- stylecheck # Replacement for golint
- tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17
# - thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- revive
- usestdlibvars
- vet

disable:
- errcheck
Expand Down Expand Up @@ -112,6 +125,9 @@ issues:
linters:
- errcheck
- gosec
- text: "ST1000: at least one file in a package should have a package comment"
linters:
- stylecheck

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
Expand Down

0 comments on commit 2a467c4

Please sign in to comment.