Skip to content

Commit

Permalink
fix .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed Oct 23, 2023
1 parent 1e504ad commit 8d624e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ linters:
linters-settings:
gosec:
excludes:
# duplicates errcheck
- G104
# performance issue: see https://github.com/golangci/golangci-lint/issues/4039
# and https://github.com/securego/gosec/issues/1007
- G602
Expand All @@ -44,3 +46,8 @@ issues:
# os.RemoveAll and any function ending in "Close".
- linters: [ errcheck ]
text: Error return value of .(.*Close|os\.Remove(All)?). is not checked

# We don't care about file inclusion via variable in examples or internal tools.
- linters: [ gosec ]
text: 'G304: Potential file inclusion via variable'
path: '^(example|update-urls)\/'

0 comments on commit 8d624e3

Please sign in to comment.