Skip to content

Commit

Permalink
Exclude generated files from linting (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Małota-Wójcik authored Aug 28, 2024
1 parent 0a7ca93 commit efa91b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/tools/golang/golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ issues:
max-same-issues: 0
# disable some excludes that golangci-lint has by default. see https://github.com/golangci/golangci-lint
exclude-use-default: false
exclude-files:
- '.+\.pb\.go' # exclude all protocol buffer generated files
- '.+\.proton\.go' # exclude all proton generated files
# many golangci linters enforce stupid rules, so we will add more to the list soon
exclude-rules:
- linters:
Expand Down

0 comments on commit efa91b2

Please sign in to comment.