Skip to content

Commit

Permalink
ci: add nilness check in govet
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Jul 23, 2024
1 parent 8f1ba15 commit b33fc98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ linters-settings:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/ustclug/Yuki)
govet:
enable:
- nilness
exhaustive:
# Only run exhaustive check on switches with "//exhaustive:enforce" comment.
explicit-exhaustive-switch: true
Expand Down

0 comments on commit b33fc98

Please sign in to comment.