File tree Expand file tree Collapse file tree 2 files changed +32
-43
lines changed
Expand file tree Collapse file tree 2 files changed +32
-43
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,37 @@ linters:
6969 - varnamelen
7070 - wrapcheck
7171 - wsl
72+ exclusions :
73+ generated : lax
74+ rules :
75+ - linters :
76+ - dupl
77+ - errcheck
78+ - gocyclo
79+ - gosec
80+ path : _test\.go
81+ - linters :
82+ - errcheck
83+ - gocognit
84+ - nlreturn
85+ - unparam
86+ path : include/
87+ - linters :
88+ - gosec
89+ path : settings/hmac/
90+ text : weak cryptographic primitive
91+ - linters :
92+ - staticcheck
93+ text : ' SA9003:'
94+ - linters :
95+ - lll
96+ source : ' ^//go:generate '
97+ - path : (.+)\.go$
98+ text : abcdef
99+ paths :
100+ - third_party$
101+ - builtin$
102+ - examples$
72103 settings :
73104 bidichk :
74105 left-to-right-embedding : true
@@ -136,25 +167,14 @@ linters:
136167 skipBalanced : true
137168 hugeParam :
138169 sizeThreshold : 80
139- nestingReduce :
140- bodyWidth : 5
141170 rangeExprCopy :
142171 sizeThreshold : 512
143172 skipTestFuncs : true
144173 rangeValCopy :
145174 sizeThreshold : 32
146175 skipTestFuncs : true
147- ruleguard :
148- debug : emptyDecl
149- failOn : dsl
150- tooManyResultsChecker :
151- maxResults : 10
152- truncateCmp :
153- skipArchDependent : true
154176 underef :
155177 skipRecvDeref : true
156- unnamedResult :
157- checkExported : true
158178 gocyclo :
159179 min-complexity : 10
160180 godot :
@@ -342,37 +362,6 @@ linters:
342362 allow-cuddle-declarations : false
343363 force-err-cuddling : false
344364 force-short-decl-cuddling : false
345- exclusions :
346- generated : lax
347- rules :
348- - linters :
349- - dupl
350- - errcheck
351- - gocyclo
352- - gosec
353- path : _test\.go
354- - linters :
355- - errcheck
356- - gocognit
357- - nlreturn
358- - unparam
359- path : include/
360- - linters :
361- - gosec
362- path : settings/hmac/
363- text : weak cryptographic primitive
364- - linters :
365- - staticcheck
366- text : ' SA9003:'
367- - linters :
368- - lll
369- source : ' ^//go:generate '
370- - path : (.+)\.go$
371- text : abcdef
372- paths :
373- - third_party$
374- - builtin$
375- - examples$
376365issues :
377366 max-issues-per-linter : 0
378367 max-same-issues : 0
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func testApplyChanges(t *testing.T, changeType ChangeType) {
4848 // Test cases
4949 tests := getApplyChangesBasicTestCases (validZoneResponse , validRRSetResponse , invalidZoneResponse )
5050
51- for _ , tt := range tests { //nolint: gocritic // we dont want to use pointers here to keep the test simple
51+ for _ , tt := range tests { //nolint: gocritic // this is a test
5252 tt := tt
5353 t .Run (tt .name , func (t * testing.T ) {
5454 t .Parallel ()
You can’t perform that action at this time.
0 commit comments