File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,10 @@ linters-settings:
193
193
godot :
194
194
# comments to be checked: `declarations`, `toplevel`, or `all`
195
195
scope : declarations
196
+ # list of regexps for excluding particular comment lines from check
197
+ exclude :
198
+ # example: exclude comments which contain numbers
199
+ # - '[0-9]+'
196
200
# check that each sentence starts with a capital letter
197
201
capital : false
198
202
godox :
@@ -294,7 +298,7 @@ linters-settings:
294
298
# specify an error message to output when a blacklisted package is used
295
299
- github.com/sirupsen/logrus : " logging is allowed only by logutils.Log"
296
300
ifshort :
297
- # Maximum length of variable declaration measured in number of lines, after which linter won't suggest using short syntax.
301
+ # Maximum length of variable declaration measured in number of lines, after which linter won't suggest using short syntax.
298
302
# Has higher priority than max-decl-chars.
299
303
max-decl-lines : 1
300
304
# Maximum length of variable declaration measured in number of characters, after which linter won't suggest using short syntax.
Original file line number Diff line number Diff line change @@ -356,8 +356,9 @@ type WSLSettings struct {
356
356
}
357
357
358
358
type GodotSettings struct {
359
- Scope string `mapstructure:"scope"`
360
- Capital bool `mapstructure:"capital"`
359
+ Scope string `mapstructure:"scope"`
360
+ Exclude []string `mapstructure:"exclude"`
361
+ Capital bool `mapstructure:"capital"`
361
362
362
363
// Deprecated: use `Scope` instead
363
364
CheckAll bool `mapstructure:"check-all"`
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ func NewGodot() *goanalysis.Linter {
30
30
cfg := lintCtx .Cfg .LintersSettings .Godot
31
31
settings := godot.Settings {
32
32
Scope : godot .Scope (cfg .Scope ),
33
+ Exclude : cfg .Exclude ,
33
34
Period : true ,
34
35
Capital : cfg .Capital ,
35
36
}
You can’t perform that action at this time.
0 commit comments