Closed denyeart closed 2 months ago
@denyeart maybe it's better to do it this way. Add a section in .golangci.yml:
linters-settings:
gosec:
excludes:
- 'G115'
@denyeart maybe it's better to do it this way. Add a section in .golangci.yml:
linters-settings: gosec: excludes: - 'G115'
Makes sense @pfi79 , done!
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.