File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -164,16 +164,28 @@ linters-settings:
164
164
include-go-root : true
165
165
166
166
# A list of packages for the list type specified.
167
+ # Can accept both string prefixes and string glob patterns.
167
168
# Default: []
168
169
packages :
169
170
- github.com/sirupsen/logrus
171
+ - allow/**/pkg
170
172
171
173
# A list of packages for the list type specified.
172
174
# Specify an error message to output when a denied package is used.
173
175
# Default: []
174
176
packages-with-error-message :
175
177
- github.com/sirupsen/logrus : ' logging is allowed only by logutils.Log'
176
178
179
+ # Specify rules by which the linter ignores certain files for consideration.
180
+ # Can accept both string prefixes and string glob patterns.
181
+ # The ! character in front of the rule is a special character
182
+ # which signals that the linter should negate the rule.
183
+ # This allows for more precise control, but it is only available for glob patterns.
184
+ # Default: []
185
+ ignore-file-rules :
186
+ - " ignore/**/*.go"
187
+ - " !**/*_test.go"
188
+
177
189
# Create additional guards that follow the same configuration pattern.
178
190
# Results from all guards are aggregated together.
179
191
additional-guards :
You can’t perform that action at this time.
0 commit comments