Skip to content

Commit

Permalink
Lock down golangci-lint config (#2602)
Browse files Browse the repository at this point in the history
Disable all default linters prior to enabling the ones we want to ensure
that no upgrade that include new default linters introduce changes to
the CI system.
  • Loading branch information
MrAlias committed Feb 14, 2022
1 parent 1bda062 commit 25827f0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .golangci.yml
Expand Up @@ -4,11 +4,26 @@ run:
tests: true #Default

linters:
# Disable everything by default so upgrades to not include new "default
# enabled" linters.
disable-all: true
# Specifically enable linters we want to use.
enable:
- misspell
- deadcode
- errcheck
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- revive
- gofmt
- staticcheck
- structcheck
- typecheck
- unused
- varcheck


issues:
exclude-rules:
Expand Down

0 comments on commit 25827f0

Please sign in to comment.