mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
🌱 Adjust 'exhaustive' linter to consider 'default' as exhaustive (#2044)
* Adjust 'exhaustive' linter to consider 'default' as exhaustive for switch statements on enum members * Include doc link for default-signifies-exhaustive change
This commit is contained in:
parent
5d9d75b2e4
commit
f61ed3701e
@ -81,6 +81,9 @@ linters-settings:
|
||||
errcheck:
|
||||
check-type-assertions: true
|
||||
check-blank: true
|
||||
exhaustive:
|
||||
# https://golangci-lint.run/usage/linters/#exhaustive
|
||||
default-signifies-exhaustive: true
|
||||
govet:
|
||||
enable:
|
||||
- fieldalignment
|
||||
|
Loading…
Reference in New Issue
Block a user