Skip to content

Commit

Permalink
Update golangci lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Nov 3, 2023
1 parent b8244ee commit 67ecc97
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ linters:
# - prealloc

disable:
- depguard
- goconst
# https://github.com/golangci/golangci-lint/issues/2649
- structcheck

Expand Down Expand Up @@ -136,18 +138,10 @@ issues:
- gocritic
text: "ifElseChain: rewrite if-else to switch statement"

# Test files do not need to be linted by gosec since all OS operations are
# not dynamic.
- linters:
- gosec
path: .*test.*
text: "G204: Subprocess launched with .*"

# Test/fuzzing do not need to be checked for file handle cleanup.
# Test/fuzzing do not need to be tested for security issues.
- linters:
- gosec
path: .*(test|fuzzer).*\.go
text: Deferring unsafe method \"Close\" on type \"\*os\.File\"

# In tests/fuzzing we are usually mocking components or have a good idea
# about the errors that we expect. For this reason, we ignore unchecked
Expand Down

0 comments on commit 67ecc97

Please sign in to comment.