mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
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:
parent
f215776807
commit
3818523092
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue