Add ErrorLint linter (#2234)

This commit is contained in:
Stephen Buttolph
2023-01-30 23:20:20 -06:00
committed by Zach Kelling
parent fa3a8cad8c
commit 883e318736
+6
View File
@@ -18,6 +18,7 @@ linters:
- asciicheck
- depguard
- errcheck
- errorlint
- exportloopref
- goconst
- gocritic
@@ -51,6 +52,11 @@ linters:
# - noctx
linters-settings:
errorlint:
# Check for plain type assertions and type switches.
asserts: false
# Check for plain error comparisons.
comparison: false
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#bool-literal-in-expr