diff --git a/.golangci.yml b/.golangci.yml index 7d99bc4..bc1cdcd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,4 +7,10 @@ issues: - path: _test\.go linters: - errcheck + # Disable staticcheck 'Empty body in an if or else branch' as it's useful + # to put a comment into an empty else-clause that explains why whatever + # is done in the if-caluse is not necessary if the condition is false. + - linters: + - staticcheck + text: "SA9003:"