Skip to content

Commit d3135c4

Browse files
committed
Suppress false positive in gosec
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]>
1 parent a356b32 commit d3135c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ linters:
1616
- misspell
1717
- typecheck
1818
- unused
19+
linters-settings:
20+
gosec:
21+
excludes:
22+
- 'G115' # safe to exclude type conversion overflow checks in this repository since the integer values will always be low

0 commit comments

Comments
 (0)