1
1
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2
2
#
3
- # Generated on 2025-03-21T11:28:29Z by kres ec5ec04.
3
+ # Generated on 2025-07-09T13:01:51Z by kres 1700045.
4
+
5
+ version : " 2"
4
6
5
7
# options for analysis running
6
8
run :
7
- timeout : 10m
9
+ modules-download-mode : readonly
8
10
issues-exit-code : 1
9
11
tests : true
10
- build-tags : [ ]
11
- modules-download-mode : readonly
12
12
13
13
# output configuration options
14
14
output :
15
15
formats :
16
- - format : colored-line-number
16
+ text :
17
17
path : stdout
18
- print-issued-lines : true
19
- print-linter-name : true
18
+ print-issued-lines : true
19
+ print-linter-name : true
20
20
path-prefix : " "
21
21
22
- # all available settings of specific linters
23
- linters-settings :
24
- dogsled :
25
- max-blank-identifiers : 2
26
- dupl :
27
- threshold : 150
28
- errcheck :
29
- check-type-assertions : true
30
- check-blank : true
31
- exhaustive :
32
- default-signifies-exhaustive : false
33
- gci :
34
- sections :
35
- - standard # Standard section: captures all standard packages.
36
- - default # Default section: contains all imports that could not be matched to another section type.
37
- - localmodule # Imports from the same module.
38
- gocognit :
39
- min-complexity : 30
40
- nestif :
41
- min-complexity : 5
42
- goconst :
43
- min-len : 3
44
- min-occurrences : 3
45
- gocritic :
46
- disabled-checks : [ ]
47
- gocyclo :
48
- min-complexity : 20
49
- godot :
50
- scope : declarations
51
- gofmt :
52
- simplify : true
53
- gomodguard : { }
54
- govet :
55
- enable-all : true
56
- lll :
57
- line-length : 200
58
- tab-width : 4
59
- misspell :
60
- locale : US
61
- ignore-words : [ ]
62
- nakedret :
63
- max-func-lines : 30
64
- prealloc :
65
- simple : true
66
- range-loops : true # Report preallocation suggestions on range loops, true by default
67
- for-loops : false # Report preallocation suggestions on for loops, false by default
68
- nolintlint :
69
- allow-unused : false
70
- allow-no-explanation : [ ]
71
- require-explanation : false
72
- require-specific : true
73
- rowserrcheck : { }
74
- testpackage : { }
75
- unparam :
76
- check-exported : false
77
- unused :
78
- local-variables-are-used : false
79
- whitespace :
80
- multi-if : false # Enforces newlines (or comments) after every multi-line if statement
81
- multi-func : false # Enforces newlines (or comments) after every multi-line function signature
82
- wsl :
83
- strict-append : true
84
- allow-assign-and-call : true
85
- allow-multiline-assign : true
86
- allow-cuddle-declarations : false
87
- allow-trailing-comment : false
88
- force-case-trailing-whitespace : 0
89
- force-err-cuddling : false
90
- allow-separated-leading-comment : false
91
- gofumpt :
92
- extra-rules : false
93
- cyclop :
94
- # the maximal code complexity to report
95
- max-complexity : 20
96
- depguard :
97
- rules :
98
- prevent_unmaintained_packages :
99
- list-mode : lax # allow unless explicitly denied
100
- files :
101
- - $all
102
- deny :
103
- - pkg : io/ioutil
104
- desc : " replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
105
22
106
23
linters :
107
- enable-all : true
108
- disable-all : false
109
- fast : false
24
+ default : all
110
25
disable :
111
26
- exhaustruct
112
27
- err113
113
28
- forbidigo
29
+ - funcorder
114
30
- funlen
115
31
- gochecknoglobals
116
32
- gochecknoinits
@@ -131,19 +47,109 @@ linters:
131
47
- testifylint # complains about our assert recorder and has a number of false positives for assert.Greater(t, thing, 1)
132
48
- protogetter # complains about us using Value field on typed spec, instead of GetValue which has a different signature
133
49
- perfsprint # complains about us using fmt.Sprintf in non-performance critical code, updating just kres took too long
134
- - goimports # same as gci
135
50
- musttag # seems to be broken - goes into imported libraries and reports issues there
51
+ - nolintlint # gives false positives - disable until https://github.com/golangci/golangci-lint/issues/3228 is resolved
52
+ # all available settings of specific linters
53
+ settings :
54
+ cyclop :
55
+ # the maximal code complexity to report
56
+ max-complexity : 20
57
+ dogsled :
58
+ max-blank-identifiers : 2
59
+ dupl :
60
+ threshold : 150
61
+ errcheck :
62
+ check-type-assertions : true
63
+ check-blank : true
64
+ exhaustive :
65
+ default-signifies-exhaustive : false
66
+ gocognit :
67
+ min-complexity : 30
68
+ nestif :
69
+ min-complexity : 5
70
+ goconst :
71
+ min-len : 3
72
+ min-occurrences : 3
73
+ gocritic :
74
+ disabled-checks : [ ]
75
+ gocyclo :
76
+ min-complexity : 20
77
+ godot :
78
+ scope : declarations
79
+ gomodguard : { }
80
+ govet :
81
+ enable-all : true
82
+ lll :
83
+ line-length : 200
84
+ tab-width : 4
85
+ misspell :
86
+ locale : US
87
+ nakedret :
88
+ max-func-lines : 30
89
+ prealloc :
90
+ simple : true
91
+ range-loops : true # Report preallocation suggestions on range loops, true by default
92
+ for-loops : false # Report preallocation suggestions on for loops, false by default
93
+ rowserrcheck : { }
94
+ testpackage : { }
95
+ unparam :
96
+ check-exported : false
97
+ unused :
98
+ local-variables-are-used : false
99
+ whitespace :
100
+ multi-if : false # Enforces newlines (or comments) after every multi-line if statement
101
+ multi-func : false # Enforces newlines (or comments) after every multi-line function signature
102
+ wsl :
103
+ strict-append : true
104
+ allow-assign-and-call : true
105
+ allow-multiline-assign : true
106
+ allow-trailing-comment : false
107
+ force-case-trailing-whitespace : 0
108
+ allow-separated-leading-comment : false
109
+ allow-cuddle-declarations : false
110
+ force-err-cuddling : false
111
+ depguard :
112
+ rules :
113
+ prevent_unmaintained_packages :
114
+ list-mode : lax # allow unless explicitly denied
115
+ files :
116
+ - $all
117
+ deny :
118
+ - pkg : io/ioutil
119
+ desc : " replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
136
120
121
+ exclusions :
122
+ generated : lax
123
+ paths :
124
+ - third_party$
125
+ - builtin$
126
+ - examples$
137
127
issues :
138
- exclude : [ ]
139
- exclude-rules : [ ]
140
- exclude-use-default : false
141
- exclude-case-sensitive : false
142
128
max-issues-per-linter : 10
143
129
max-same-issues : 3
144
- new : false
145
130
uniq-by-line : true
131
+ new : false
146
132
147
133
severity :
148
- default-severity : error
149
- case-sensitive : false
134
+ default : error
135
+ formatters :
136
+ enable :
137
+ - gci
138
+ - gofmt
139
+ - gofumpt
140
+ settings :
141
+ gci :
142
+ sections :
143
+ - standard
144
+ - default
145
+ - localmodule
146
+ gofmt :
147
+ simplify : true
148
+ gofumpt :
149
+ extra-rules : false
150
+ exclusions :
151
+ generated : lax
152
+ paths :
153
+ - third_party$
154
+ - builtin$
155
+ - examples$
0 commit comments