1- linters-settings :
2- errcheck :
3- check-type-assertions : true
4- forbidigo :
5- forbid :
6- - ' ^fmt\.Print'
7- - ' ^log\.'
8- - ' ^print$'
9- - ' ^println$'
10- - ' ^panic$'
11- godox :
12- # TODO, OPT, etc. comments are fine to commit. Use FIXME comments for
13- # temporary hacks, and use godox to prevent committing them.
14- keywords : [FIXME]
15- varnamelen :
16- ignore-decls :
17- - T any
18- - i int
19- - wg sync.WaitGroup
20- - id string
1+ version : " 2"
212linters :
22- enable-all : true
3+ default : all
234 disable :
245 - cyclop # covered by gocyclo
256 - depguard # unnecessary for small libraries
@@ -28,78 +9,108 @@ linters:
289 - funlen # rely on code review to limit function length
2910 - gochecknoglobals # many exceptions
3011 - gocognit # dubious "cognitive overhead" quantification
31- - gofumpt # prefer standard gofmt
32- - goimports # rely on gci instead
33- - gomnd # some unnamed constants are okay
3412 - inamedparam # not standard style
3513 - interfacebloat # many exceptions
3614 - ireturn # "accept interfaces, return structs" isn't ironclad
3715 - lll # don't want hard limits for line length
3816 - maintidx # covered by gocyclo
3917 - nilnil # allow this
4018 - nlreturn # generous whitespace violates house style
19+ - noinlineerr # excess scope violates house style
4120 - testifylint # does not want us to use assert
4221 - testpackage # internal tests are fine
4322 - thelper # we want to print out the whole stack
4423 - wrapcheck # don't _always_ need to wrap errors
4524 - wsl # generous whitespace violates house style
46- issues :
47- exclude-dirs-use-default : false
48- exclude-rules :
49- - linters :
50- - revive
51- path : check/client.go
52- test : " CheckCallOption"
53- - linters :
54- - revive
55- path : check/check_service_handler.go
56- test : " CheckServiceHandlerOption"
57- - linters :
58- - exhaustive
59- path : option/options.go
60- text : " reflect.Pointer|reflect.Ptr"
61- - linters :
62- - gocritic
63- path : check/file.go
64- text : " commentFormatting"
65- - linters :
66- - gocritic
67- path : check/location.go
68- text : " commentFormatting"
69- - linters :
70- - unparam
71- path : check/category_spec.go
72- - linters :
73- - unparam
74- path : check/annotation.go
75- - linters :
76- - unparam
77- path : check/response.go
78- - linters :
79- - unparam
80- path : info/plugin_info.go
81- - linters :
82- - varnamelen
83- path : check/internal/example
84- - linters :
85- - dupl
86- path : check/checkutil/breaking.go
87- - linters :
88- - varnamelen
89- path : check/checkutil/breaking.go
90- - linters :
91- - varnamelen
92- path : check/checkutil/lint.go
93- - linters :
94- - varnamelen
95- path : check/checkutil/util.go
96- - linters :
97- - varnamelen
98- path : internal/pkg/xslices/xslices.go
99- - linters :
100- - revive
101- path : internal/pkg/compare/compare.go
102- - linters :
103- - gosec
104- path : check/checktest/checktest.go
105- text : " G115:"
25+ - wsl_v5 # generous whitespace violates house style
26+ settings :
27+ errcheck :
28+ check-type-assertions : true
29+ forbidigo :
30+ forbid :
31+ - pattern : ^fmt\.Print
32+ - pattern : ^log\.
33+ - pattern : ^print$
34+ - pattern : ^println$
35+ - pattern : ^panic$
36+ godox :
37+ # TODO, OPT, etc. comments are fine to commit. Use FIXME comments for
38+ # temporary hacks, and use godox to prevent committing them.
39+ keywords :
40+ - FIXME
41+ varnamelen :
42+ ignore-decls :
43+ - T any
44+ - i int
45+ - wg sync.WaitGroup
46+ - id string
47+ exclusions :
48+ generated : lax
49+ presets :
50+ - comments
51+ - common-false-positives
52+ - legacy
53+ - std-error-handling
54+ rules :
55+ - linters :
56+ - revive
57+ path : check/client.go
58+ text : CheckCallOption
59+ - linters :
60+ - revive
61+ path : check/check_service_handler.go
62+ text : stutter
63+ - linters :
64+ - exhaustive
65+ path : option/options.go
66+ text : reflect.Pointer|reflect.Ptr
67+ - linters :
68+ - gocritic
69+ path : check/file.go
70+ text : commentFormatting
71+ - linters :
72+ - gocritic
73+ path : check/location.go
74+ text : commentFormatting
75+ - linters :
76+ - unparam
77+ path : check/category_spec.go
78+ - linters :
79+ - unparam
80+ path : check/annotation.go
81+ - linters :
82+ - unparam
83+ path : check/response.go
84+ - linters :
85+ - unparam
86+ path : info/plugin_info.go
87+ - linters :
88+ - varnamelen
89+ path : check/internal/example
90+ - linters :
91+ - dupl
92+ path : check/checkutil/breaking.go
93+ - linters :
94+ - varnamelen
95+ path : check/checkutil/breaking.go
96+ - linters :
97+ - varnamelen
98+ path : check/checkutil/lint.go
99+ - linters :
100+ - varnamelen
101+ path : check/checkutil/util.go
102+ - linters :
103+ - varnamelen
104+ path : internal/pkg/xslices/xslices.go
105+ - linters :
106+ - revive
107+ path : internal/pkg/compare/compare.go
108+ - linters :
109+ - gosec
110+ path : check/checktest/checktest.go
111+ text : ' G115:'
112+ formatters :
113+ enable :
114+ - gci
115+ exclusions :
116+ generated : lax
0 commit comments