From 381852309218b320b002676690b9696dae7d51c4 Mon Sep 17 00:00:00 2001 From: Hayley Swimelar Date: Thu, 9 Jan 2020 15:36:28 -0800 Subject: [PATCH] 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. --- assets/.golangci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/.golangci.yml b/assets/.golangci.yml index b6d1770..18b4fb2 100644 --- a/assets/.golangci.yml +++ b/assets/.golangci.yml @@ -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