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
golangci-lint set --exclude-use-default=true by default, but the exclude pattern is used for global match but not for specified linter(we can see the linter in pkg/config/config.go). I develop a new linter, one rule just check whether there is at least one package comment in a Go package, but the issue match EXC0002 for golint, so it is ignored by default.
I think we can make some changes to the processor in pkg/result/processors/exclude_rules.go, so that it can handle both exclude global match and exclude specified match for some linters.
The text was updated successfully, but these errors were encountered:
golangci-lint set
--exclude-use-default=true
by default, but the exclude pattern is used for global match but not for specified linter(we can see the linter inpkg/config/config.go
). I develop a new linter, one rule just check whether there is at least one package comment in a Go package, but the issue matchEXC0002
for golint, so it is ignored by default.I think we can make some changes to the processor in
pkg/result/processors/exclude_rules.go
, so that it can handle bothexclude global match
andexclude specified match for some linters
.The text was updated successfully, but these errors were encountered: