Skip to content

Commit

Permalink
ignore package comments across CAPZ
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazkh committed Oct 3, 2024
1 parent 0b7a99d commit d41a862
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,21 @@ issues:
- revive
text: "^unused-parameter: parameter '.*' seems to be unused, consider removing or renaming it as _$"
path: .*(_test|test)\.go$
# Ignore adding package comments for all files. TODO: Ideally, we should add package comments to all the packages files.
- linters:
- revive
text: "package-comments: package comment should be of the form"
path: .*_test\.go$
text: "^package-comments: package comment should be of the form \".*\"$"
path: .*\.go$
# Ignore adding package comments for all files. TODO: Ideally, we should add package comments to all the packages files.
- linters:
- stylecheck
text: "ST1000: at least one file in a package should have a package comment"
path: .*\.go$
# Ignore adding package comments for all files. TODO: Ideally, we should add package comments to all the packages files.
- linters:
- revive
text: "package-comments: should have a package comment"
path: .*\.go$
# We are disabling default golangci exclusions because we want to help reviewers to focus on reviewing the most relevant
# changes in PRs and avoid nitpicking.
exclude-use-default: false
Expand Down

0 comments on commit d41a862

Please sign in to comment.