lint: allow empty else branches

This commit is contained in:
Christian Schwarz 2022-09-25 17:08:41 +02:00
parent c7771f98f5
commit 89f7c76c4e

View File

@ -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:"