1
- linters-settings :
2
- depguard :
3
- list-type : blacklist
4
- packages :
5
- # logging is allowed only by logutils.Log, logrus
6
- # is allowed to use only in logutils package
7
- - github.com/sirupsen/logrus
8
- packages-with-error-message :
9
- - github.com/sirupsen/logrus : " logging is allowed only by logutils.Log"
10
- dupl :
11
- threshold : 100
12
- funlen :
13
- lines : 100
14
- statements : 50
15
- gci :
16
- local-prefixes : github.com/golangci/golangci-lint
17
- goconst :
18
- min-len : 2
19
- min-occurrences : 2
20
- gocritic :
21
- enabled-tags :
22
- - diagnostic
23
- - experimental
24
- - opinionated
25
- - performance
26
- - style
27
- disabled-checks :
28
- - dupImport # https://github.com/go-critic/go-critic/issues/845
29
- - ifElseChain
30
- - octalLiteral
31
- - whyNoLint
32
- - wrapperFunc
33
- gocyclo :
34
- min-complexity : 15
35
- goimports :
36
- local-prefixes : github.com/golangci/golangci-lint
37
- golint :
38
- min-confidence : 0
39
- gomnd :
40
- settings :
41
- mnd :
42
- # don't include the "operation" and "assign"
43
- checks : argument,case,condition,return
44
- govet :
45
- check-shadowing : true
46
- settings :
47
- printf :
48
- funcs :
49
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
50
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
51
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
52
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
53
- lll :
54
- line-length : 140
55
- maligned :
56
- suggest-new : true
57
- misspell :
58
- locale : US
59
- nolintlint :
60
- allow-leading-space : true # don't require machine-readable nolint directives (i.e. with no leading space)
61
- allow-unused : false # report any unused nolint directives
62
- require-explanation : false # don't require an explanation for nolint directives
63
- require-specific : false # don't require nolint directives to be specific about which linter is being skipped
64
-
65
- linters :
66
- # please, do not use `enable-all`: it's deprecated and will be removed soon.
67
- # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
68
- disable-all : true
69
- enable :
70
- - bodyclose
71
- - deadcode
72
- - depguard
73
- - dogsled
74
- - dupl
75
- - errcheck
76
- - exportloopref
77
- - exhaustive
78
- - funlen
79
- - gochecknoglobals
80
- - gochecknoinits
81
- - goconst
82
- - gocritic
83
- - gocyclo
84
- - godot
85
- - goerr113
86
- - gofmt
87
- - goimports
88
- - golint
89
- - gomnd
90
- - goprintffuncname
91
- - gosec
92
- - gosimple
93
- - govet
94
- - ineffassign
95
- - lll
96
- - misspell
97
- - nakedret
98
- - noctx
99
- - nolintlint
100
- - rowserrcheck
101
- - staticcheck
102
- - structcheck
103
- - stylecheck
104
- - typecheck
105
- - unconvert
106
- - unparam
107
- - unused
108
- - varcheck
109
- - whitespace
110
-
111
- # don't enable:
112
- # - asciicheck
113
- # - scopelint
114
- # - gocognit
115
- # - godot
116
- # - godox
117
- # - interfacer
118
- # - maligned
119
- # - nestif
120
- # - prealloc
121
- # - testpackage
122
- # - revive
123
- # - wsl
124
-
125
- issues :
126
- # Excluding configuration per-path, per-linter, per-text and per-source
127
- exclude-rules :
128
- - path : _test\.go
129
- linters :
130
- - gomnd
131
-
132
- # https://github.com/go-critic/go-critic/issues/926
133
- - linters :
134
- - gocritic
135
- text : " unnecessaryDefer:"
136
-
137
- run :
138
- skip-dirs :
139
- - test/testdata_etc
140
- - internal/cache
141
- - internal/renameio
1
+ linters-settings :
2
+ depguard :
3
+ list-type : blacklist
4
+ packages :
5
+ # logging is allowed only by logutils.Log, logrus
6
+ # is allowed to use only in logutils package
7
+ - github.com/sirupsen/logrus
8
+ packages-with-error-message :
9
+ - github.com/sirupsen/logrus : " logging is allowed only by logutils.Log"
10
+ dupl :
11
+ threshold : 100
12
+ funlen :
13
+ lines : 100
14
+ statements : 50
15
+ gci :
16
+ local-prefixes : github.com/golangci/golangci-lint
17
+ goconst :
18
+ min-len : 2
19
+ min-occurrences : 2
20
+ gocritic :
21
+ enabled-tags :
22
+ - diagnostic
23
+ - experimental
24
+ - opinionated
25
+ - performance
26
+ - style
27
+ disabled-checks :
28
+ - dupImport # https://github.com/go-critic/go-critic/issues/845
29
+ - ifElseChain
30
+ - octalLiteral
31
+ - whyNoLint
32
+ - wrapperFunc
33
+ gocyclo :
34
+ min-complexity : 15
35
+ goimports :
36
+ local-prefixes : github.com/golangci/golangci-lint
37
+ golint :
38
+ min-confidence : 0
39
+ gomnd :
40
+ settings :
41
+ mnd :
42
+ # don't include the "operation" and "assign"
43
+ checks : argument,case,condition,return
44
+ govet :
45
+ check-shadowing : true
46
+ settings :
47
+ printf :
48
+ funcs :
49
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
50
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
51
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
52
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
53
+ lll :
54
+ line-length : 140
55
+ maligned :
56
+ suggest-new : true
57
+ misspell :
58
+ locale : US
59
+ nolintlint :
60
+ allow-leading-space : true # don't require machine-readable nolint directives (i.e. with no leading space)
61
+ allow-unused : false # report any unused nolint directives
62
+ require-explanation : false # don't require an explanation for nolint directives
63
+ require-specific : false # don't require nolint directives to be specific about which linter is being skipped
64
+
65
+ linters :
66
+ # please, do not use `enable-all`: it's deprecated and will be removed soon.
67
+ # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
68
+ disable-all : true
69
+ enable :
70
+ - bodyclose
71
+ - deadcode
72
+ - depguard
73
+ - dogsled
74
+ - dupl
75
+ - errcheck
76
+ - exportloopref
77
+ - exhaustive
78
+ - funlen
79
+ - gochecknoglobals
80
+ - gochecknoinits
81
+ - goconst
82
+ - gocritic
83
+ - gocyclo
84
+ - godot
85
+ - goerr113
86
+ - gofmt
87
+ - goimports
88
+ - gomnd
89
+ - goprintffuncname
90
+ - gosec
91
+ - gosimple
92
+ - govet
93
+ - ineffassign
94
+ - lll
95
+ - misspell
96
+ - nakedret
97
+ - noctx
98
+ - nolintlint
99
+ - revive
100
+ - rowserrcheck
101
+ - staticcheck
102
+ - structcheck
103
+ - stylecheck
104
+ - typecheck
105
+ - unconvert
106
+ - unparam
107
+ - unused
108
+ - varcheck
109
+ - whitespace
110
+
111
+ # don't enable:
112
+ # - asciicheck
113
+ # - scopelint
114
+ # - gocognit
115
+ # - godot
116
+ # - godox
117
+ # - interfacer
118
+ # - maligned
119
+ # - nestif
120
+ # - prealloc
121
+ # - testpackage
122
+ # - revive
123
+ # - wsl
124
+
125
+ issues :
126
+ # Excluding configuration per-path, per-linter, per-text and per-source
127
+ exclude-rules :
128
+ - path : _test\.go
129
+ linters :
130
+ - gomnd
131
+
132
+ # https://github.com/go-critic/go-critic/issues/926
133
+ - linters :
134
+ - gocritic
135
+ text : " unnecessaryDefer:"
136
+
137
+ run :
138
+ skip-dirs :
139
+ - test/testdata_etc
140
+ - internal/cache
141
+ - internal/renameio
142
142
- internal/robustio
0 commit comments