Skip to content

Commit

Permalink
misc: disable G601 lint rule
Browse files Browse the repository at this point in the history
This rule is no longer relevant to Go 1.22+, however golangci-lint is
still using an older version of gosec which does not yet include the
changes to disable this warning on this version of Go.

The changes to update gosec have been merged, but are not yet included
in the latest version of golangci-lint (to the best of my knowledge,
given the linter is still complaining about it, and the milestone for
that PR is 'next' at the time of writing this): golangci/golangci-lint#4724
  • Loading branch information
hbomb79 committed May 18, 2024
1 parent 2375bb9 commit 3059c6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ linters-settings:
case:
rules:
json: snake
gosec:
excludes:
- G601

0 comments on commit 3059c6d

Please sign in to comment.