You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2
2
#
3
-
# Generated on 2024-12-17T15:03:06Z by kres b9507d6.
3
+
# Generated on 2025-04-16T13:44:44Z by kres fd5cab0.
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
20
-
uniq-by-line: true
18
+
print-issued-lines: true
19
+
print-linter-name: true
21
20
path-prefix: ""
22
21
23
-
# all available settings of specific linters
24
-
linters-settings:
25
-
dogsled:
26
-
max-blank-identifiers: 2
27
-
dupl:
28
-
threshold: 150
29
-
errcheck:
30
-
check-type-assertions: true
31
-
check-blank: true
32
-
exhaustive:
33
-
default-signifies-exhaustive: false
34
-
gci:
35
-
sections:
36
-
- standard # Standard section: captures all standard packages.
37
-
- default # Default section: contains all imports that could not be matched to another section type.
38
-
- localmodule # Imports from the same module.
39
-
gocognit:
40
-
min-complexity: 30
41
-
nestif:
42
-
min-complexity: 5
43
-
goconst:
44
-
min-len: 3
45
-
min-occurrences: 3
46
-
gocritic:
47
-
disabled-checks: [ ]
48
-
gocyclo:
49
-
min-complexity: 20
50
-
godot:
51
-
scope: declarations
52
-
gofmt:
53
-
simplify: true
54
-
gomodguard: { }
55
-
govet:
56
-
enable-all: true
57
-
lll:
58
-
line-length: 200
59
-
tab-width: 4
60
-
misspell:
61
-
locale: US
62
-
ignore-words: [ ]
63
-
nakedret:
64
-
max-func-lines: 30
65
-
prealloc:
66
-
simple: true
67
-
range-loops: true # Report preallocation suggestions on range loops, true by default
68
-
for-loops: false # Report preallocation suggestions on for loops, false by default
69
-
nolintlint:
70
-
allow-unused: false
71
-
allow-no-explanation: [ ]
72
-
require-explanation: false
73
-
require-specific: true
74
-
rowserrcheck: { }
75
-
testpackage: { }
76
-
unparam:
77
-
check-exported: false
78
-
unused:
79
-
local-variables-are-used: false
80
-
whitespace:
81
-
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
82
-
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
83
-
wsl:
84
-
strict-append: true
85
-
allow-assign-and-call: true
86
-
allow-multiline-assign: true
87
-
allow-cuddle-declarations: false
88
-
allow-trailing-comment: false
89
-
force-case-trailing-whitespace: 0
90
-
force-err-cuddling: false
91
-
allow-separated-leading-comment: false
92
-
gofumpt:
93
-
extra-rules: false
94
-
cyclop:
95
-
# the maximal code complexity to report
96
-
max-complexity: 20
97
-
depguard:
98
-
rules:
99
-
prevent_unmaintained_packages:
100
-
list-mode: lax # allow unless explicitly denied
101
-
files:
102
-
- $all
103
-
deny:
104
-
- pkg: io/ioutil
105
-
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
106
22
107
23
linters:
108
-
enable-all: true
109
-
disable-all: false
110
-
fast: false
24
+
default: all
111
25
disable:
112
26
- exhaustruct
113
27
- err113
114
28
- forbidigo
29
+
- funcorder
115
30
- funlen
116
31
- gochecknoglobals
117
32
- gochecknoinits
@@ -132,19 +47,113 @@ linters:
132
47
- testifylint # complains about our assert recorder and has a number of false positives for assert.Greater(t, thing, 1)
133
48
- protogetter # complains about us using Value field on typed spec, instead of GetValue which has a different signature
134
49
- perfsprint # complains about us using fmt.Sprintf in non-performance critical code, updating just kres took too long
135
-
- goimports # same as gci
136
50
- musttag # seems to be broken - goes into imported libraries and reports issues there
137
-
- exportloopref # WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
51
+
# all available settings of specific linters
52
+
settings:
53
+
cyclop:
54
+
# the maximal code complexity to report
55
+
max-complexity: 20
56
+
dogsled:
57
+
max-blank-identifiers: 2
58
+
dupl:
59
+
threshold: 150
60
+
errcheck:
61
+
check-type-assertions: true
62
+
check-blank: true
63
+
exhaustive:
64
+
default-signifies-exhaustive: false
65
+
gocognit:
66
+
min-complexity: 30
67
+
nestif:
68
+
min-complexity: 5
69
+
goconst:
70
+
min-len: 3
71
+
min-occurrences: 3
72
+
gocritic:
73
+
disabled-checks: [ ]
74
+
gocyclo:
75
+
min-complexity: 20
76
+
godot:
77
+
scope: declarations
78
+
gomodguard: { }
79
+
govet:
80
+
enable-all: true
81
+
lll:
82
+
line-length: 200
83
+
tab-width: 4
84
+
misspell:
85
+
locale: US
86
+
nakedret:
87
+
max-func-lines: 30
88
+
prealloc:
89
+
simple: true
90
+
range-loops: true # Report preallocation suggestions on range loops, true by default
91
+
for-loops: false # Report preallocation suggestions on for loops, false by default
92
+
nolintlint:
93
+
allow-unused: false
94
+
allow-no-explanation: [ ]
95
+
require-explanation: false
96
+
require-specific: true
97
+
rowserrcheck: { }
98
+
testpackage: { }
99
+
unparam:
100
+
check-exported: false
101
+
unused:
102
+
local-variables-are-used: false
103
+
whitespace:
104
+
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
105
+
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
106
+
wsl:
107
+
strict-append: true
108
+
allow-assign-and-call: true
109
+
allow-multiline-assign: true
110
+
allow-trailing-comment: false
111
+
force-case-trailing-whitespace: 0
112
+
allow-separated-leading-comment: false
113
+
allow-cuddle-declarations: false
114
+
force-err-cuddling: false
115
+
depguard:
116
+
rules:
117
+
prevent_unmaintained_packages:
118
+
list-mode: lax # allow unless explicitly denied
119
+
files:
120
+
- $all
121
+
deny:
122
+
- pkg: io/ioutil
123
+
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
0 commit comments