mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
Add ErrorLint linter (#2234)
This commit is contained in:
committed by
Zach Kelling
parent
fa3a8cad8c
commit
883e318736
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user