Skip to content

Commit

Permalink
Suppress false positive in gosec
Browse files Browse the repository at this point in the history
New versions of gosec implemented stricter type conversion.
Since the integer values will be small in the conversions in this codebase,
it is safe to suppress these gosec warnings.

Signed-off-by: David Enyeart <[email protected]>
  • Loading branch information
denyeart committed Sep 9, 2024
1 parent a356b32 commit 0590611
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ linters:
- misspell
- typecheck
- unused
linters-settings:
gosec:
excludes:
- 'G115' # safe to exclude type conversion overflow checks in this repository since the integer values will always be low

0 comments on commit 0590611

Please sign in to comment.