Merge branch 'refine-golangci-yaml' into 'master'

Refine golangci yaml

See merge request gitlab-org/gitlab-build-images!257
This commit is contained in:
Zeger-Jan van de Weg 2019-12-16 09:07:05 +00:00
commit 7021485b65

View file

@ -49,7 +49,6 @@ run:
# the dependency descriptions in go.mod. # the dependency descriptions in go.mod.
# modules-download-mode: readonly|release|vendor # modules-download-mode: readonly|release|vendor
# output configuration options # output configuration options
output: output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
@ -61,7 +60,6 @@ output:
# print linter name in the end of issue text, default is true # print linter name in the end of issue text, default is true
print-linter-name: true print-linter-name: true
# all available settings of specific linters # all available settings of specific linters
linters-settings: linters-settings:
errcheck: errcheck:
@ -204,6 +202,9 @@ linters-settings:
# report any comments starting with keywords, this is useful for TODO or FIXME comments that # report any comments starting with keywords, this is useful for TODO or FIXME comments that
# might be left in the code accidentally and should be resolved before merging # might be left in the code accidentally and should be resolved before merging
keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting
- TODO
- BUG
- FIXME
- NOTE - NOTE
- OPTIMIZE # marks code that should be optimized before merging - OPTIMIZE # marks code that should be optimized before merging
- HACK # marks hack-arounds that should be removed before merging - HACK # marks hack-arounds that should be removed before merging
@ -236,7 +237,6 @@ linters:
disable-all: true disable-all: true
enable: enable:
- bodyclose - bodyclose
- deadcode
- depguard - depguard
- dogsled - dogsled
- dupl - dupl
@ -245,6 +245,7 @@ linters:
- gocognit - gocognit
- goconst - goconst
- gocritic - gocritic
- godox
- gofmt - gofmt
- goimports - goimports
- golint - golint
@ -263,17 +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
# - godox
# - 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.