1
- run :
2
- timeout : 5m
3
- go : " 1.22"
4
-
5
- issues :
6
- exclude-use-default : false
7
-
8
- linters-settings :
9
- govet :
10
- enable-all : true
11
- disable :
12
- - shadow
13
- - fieldalignment
14
- settings :
15
- printf : # analyzer name, run `go tool vet help` to see all analyzers
16
- funcs : # run `go tool vet help printf` to see available settings for `printf` analyzer
17
- - Print
18
- - Printf
19
- - Println
20
- - Debug
21
- - Debugf
22
- - Info
23
- - Infof
24
- - Warn
25
- - Warnf
26
- - Error
27
- - Errorf
28
- gocritic :
29
- enabled-tags :
30
- - diagnostic
31
- - experimental
32
- - opinionated
33
- - performance
34
- - style
35
- disabled-checks :
36
- - dupImport # https://github.com/go-critic/go-critic/issues/845
37
- - commentFormatting
38
- - octalLiteral
39
- - unnamedResult
40
- - unnecessaryDefer
41
- - importShadow
42
- - emptyStringTest
43
- - hugeParam
44
- - rangeValCopy
45
- gosec :
46
- excludes :
47
- - G101
48
- gosimple :
49
- checks : ["all"]
50
- nolintlint :
51
- allow-unused : false # report any unused nolint directives
52
- require-explanation : false # don't require an explanation for nolint directives
53
- require-specific : true # require nolint directives to be specific about which linter is being skipped
54
- revive :
55
- confidence : 0
56
- # Due to https://github.com/golangci/golangci-lint/issues/2355 on MacOS the linter is failing with the error
57
- # message too many files. Set the max-open-files explicitly.
58
- max-open-files : 2048
59
- staticcheck :
60
- checks : ["all"]
61
- stylecheck :
62
- checks : ["all", "-ST1000"]
63
- testifylint :
64
- disable :
65
- - require-error
66
- enable-all : true
1
+ formatters :
2
+ enable :
3
+ - gofmt
4
+ - goimports
67
5
68
6
linters :
69
7
# please, do not use `enable-all`: it's deprecated and will be removed soon.
70
8
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
71
- disable-all : true
9
+ default : none
10
+
72
11
enable :
73
12
- asciicheck
74
13
# - bodyclose
@@ -87,12 +26,9 @@ linters:
87
26
# - godot
88
27
# - godox
89
28
# - goerr113
90
- - gofmt
91
- - goimports
92
29
# - gomnd
93
30
# - goprintffuncname
94
31
- gosec
95
- - gosimple
96
32
- govet
97
33
- ineffassign
98
34
# - interfacer
@@ -108,7 +44,6 @@ linters:
108
44
# - scopelint
109
45
- staticcheck
110
46
# - structcheck
111
- - stylecheck
112
47
# - testpackage
113
48
- testifylint
114
49
# - typecheck
@@ -118,3 +53,87 @@ linters:
118
53
# - varcheck
119
54
# - whitespace
120
55
# - wsl
56
+
57
+ settings :
58
+ gocritic :
59
+ disabled-checks :
60
+ - dupImport # https://github.com/go-critic/go-critic/issues/845
61
+ - commentFormatting
62
+ - octalLiteral
63
+ - unnamedResult
64
+ - unnecessaryDefer
65
+ - importShadow
66
+ - emptyStringTest
67
+ - hugeParam
68
+ - rangeValCopy
69
+
70
+ enabled-tags :
71
+ - diagnostic
72
+ - experimental
73
+ - opinionated
74
+ - performance
75
+ - style
76
+
77
+ gosec :
78
+ excludes :
79
+ - G101
80
+
81
+ govet :
82
+ disable :
83
+ - shadow
84
+ - fieldalignment
85
+
86
+ enable-all : true
87
+
88
+ settings :
89
+ printf : # analyzer name, run `go tool vet help` to see all analyzers
90
+ funcs : # run `go tool vet help printf` to see available settings for `printf` analyzer
91
+ - Print
92
+ - Printf
93
+ - Println
94
+ - Debug
95
+ - Debugf
96
+ - Info
97
+ - Infof
98
+ - Warn
99
+ - Warnf
100
+ - Error
101
+ - Errorf
102
+
103
+ nolintlint :
104
+ # report any unused nolint directives
105
+ allow-unused : false
106
+
107
+ # don't require an explanation for nolint directives
108
+ require-explanation : false
109
+
110
+ # require nolint directives to be specific about which linter is being skipped
111
+ require-specific : true
112
+
113
+ revive :
114
+ confidence : 0
115
+
116
+ # Due to https://github.com/golangci/golangci-lint/issues/2355 on MacOS the linter is failing with the error
117
+ # message too many files. Set the max-open-files explicitly.
118
+ max-open-files : 2048
119
+
120
+ staticcheck :
121
+ checks :
122
+ - all
123
+ - -ST1000
124
+
125
+ testifylint :
126
+ disable :
127
+ - require-error
128
+
129
+ enable-all : true
130
+
131
+ output :
132
+ show-stats : false
133
+
134
+ run :
135
+ go : " 1.22"
136
+
137
+ timeout : 5m
138
+
139
+ version : " 2"
0 commit comments