.golangci.yml: disable varcheck and deadcode

varcheck and deadcode conflict with unused, creating
a different output file (reporting the same errors) on
different runs. With code-climate reporting, this can
result in an equal number of false positives and false negatives
when comparing successive runs, with no node changes.
This commit is contained in:
Hayley Swimelar 2019-12-13 12:52:28 -08:00
parent fe8978aa4f
commit ec510fe656

View file

@ -237,7 +237,6 @@ linters:
disable-all: true disable-all: true
enable: enable:
- bodyclose - bodyclose
- deadcode
- depguard - depguard
- dogsled - dogsled
- dupl - dupl
@ -265,15 +264,16 @@ linters:
- unconvert - unconvert
- unparam - unparam
- unused - unused
- varcheck
- whitespace - whitespace
# don't enable: # don't enable:
# - deadcode
# - gochecknoglobals # - gochecknoglobals
# - gochecknoinits # - gochecknoinits
# - gocyclo # - gocyclo
# - lll # - lll
# - maligned # - maligned
# - prealloc # - prealloc
# - varcheck
issues: issues:
# List of regexps of issue texts to exclude, empty list by default. # List of regexps of issue texts to exclude, empty list by default.