Disble gosec from checking errors

Occasionally, the code quality report will include gosec "error not
checked" type linting errors instead of the ones from errcheck.
This produces unnecessary noise in the merge request UI.

errcheck seems to capture a wider range of issues, and, for this
family of issues, can be configured more granularly.
This commit is contained in:
Hayley Swimelar 2020-01-09 15:36:28 -08:00
parent f215776807
commit 3818523092

View file

@ -80,6 +80,11 @@ linters-settings:
# see https://github.com/kisielk/errcheck#excluding-functions for details
# exclude: /path/to/file.txt
# Disable error checking, as errorcheck detects more errors and is more configurable.
gosec:
exclude:
- "G104"
funlen:
lines: 60
statements: 40