11---
2- output :
3- # print lines of code with issue, default is true
4- print-issued-lines : false
5-
6- # all available settings of specific linters
72linters-settings :
8- govet :
9- enable-all : true
10- disable :
11- - fieldalignment
3+ stylecheck :
4+ # STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
5+ checks : ["all", "-ST1000"]
126 depguard :
137 rules :
148 main :
@@ -19,63 +13,59 @@ linters-settings:
1913 desc : " wrong testify package"
2014 misspell :
2115 locale : US
22- gocritic :
23- # Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run`
24- # to see all tags and checks. Empty list by default. See
25- # https://github.com/go-critic/go-critic#usage -> section "Tags".
26- enabled-tags :
27- - diagnostic
28- - experimental
29- - opinionated
30- - performance
31- - style
32- disabled-checks :
33- - hugeParam
34- wsl :
35- # Force newlines in end of case at this limit (0 = never).
36- force-case-trailing-whitespace : 0
37-
16+ gci :
17+ sections :
18+ - standard # Standard section: captures all standard packages.
19+ - default # Default section: contains all imports that could not be matched to another section type.
20+ - localmodule # Local module section: contains all local packages. This section is not present unless explicitly enabled.
3821linters :
39- enable-all : true
40- disable :
41- - cyclop
42- - copyloopvar
43- - dupl
44- - execinquery
45- - exhaustruct
46- - forbidigo
47- - funlen
22+ disable-all : true
23+ enable :
24+ - asasalint
25+ - asciicheck
26+ - bidichk
27+ - depguard
28+ - errcheck
29+ - errchkjson
30+ - errorlint
31+ - exhaustive
32+ - fatcontext
4833 - gci
49- - gocognit
50- - gocyclo
34+ - gocritic
5135 - godox
52- - gomnd
53- - lll
54- - mnd
55- - nakedret
56- - nlreturn
57- - noctx
58- - nonamedreturns
59- - paralleltest
60- - perfsprint
61- - prealloc
62- - testpackage
63- - varnamelen
64- - wrapcheck
65- disable-all : false
66- fast : false
67-
36+ - gofmt
37+ - gofumpt
38+ - goimports
39+ - gosec
40+ - govet
41+ - ineffassign
42+ - misspell
43+ - nolintlint
44+ - predeclared
45+ - reassign
46+ - sloglint
47+ - staticcheck
48+ - stylecheck
49+ - unparam
50+ - unused
51+ - usestdlibvars
52+ - wastedassign
53+ - whitespace
54+ - wsl
6855issues :
69- # Independently from option `exclude` we use default exclude patterns,
70- # it can be disabled by this option. To list all
71- # excluded by default patterns execute `golangci-lint run --help`.
72- # Default value for this option is true.
73- exclude-use-default : true
74-
75- # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
56+ exclude-use-default : false
57+ exclude-rules :
58+ - path : ' (testing.go)|((.+)_test\.go)'
59+ linters :
60+ - errcheck
61+ - gosec
62+ - text : " Error return value of `.*\\ .Close` is not checked"
63+ linters :
64+ - errcheck
65+ - text : G104
66+ linters :
67+ - gosec
68+ # Ensure that we can see all issues at once.
7669 max-issues-per-linter : 0
77-
78- # Maximum count of issues with the same text. Set to 0 to disable. Default is
79- # 3.
8070 max-same-issues : 0
8171# vim: set sw=2 ts=2 et:
0 commit comments