mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
.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:
parent
fe8978aa4f
commit
ec510fe656
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue