Skip to content

Commit

Permalink
Exclude package-comments in golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
roger2hk committed Dec 11, 2022
1 parent d6abf73 commit 816c49b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,14 @@ linters:
# ./scripts/check_license.sh is run by ./scripts/presubmit.sh

issues:
# Don't turn off any checks by default. We can do this explicitly if needed.
exclude-use-default: false
# Don't turn off any checks by default. We can do this explicitly if needed.
exclude-use-default: false
# List of regexps of issue texts to exclude.
#
# But independently of this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`.
# To list all excluded by default patterns execute `golangci-lint run --help`
#
# Default: https://golangci-lint.run/usage/false-positives/#default-exclusions
exclude:
- "package-comments: should have a package comment"

0 comments on commit 816c49b

Please sign in to comment.