Chore: Enable errorlint linter (#29227)

* Enable errorlint linter
* Handle wrapped errors

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
This commit is contained in:
Arve Knudsen
2020-11-19 14:47:17 +01:00
committed by GitHub
co-authored by Emil Tullstedt
parent 993adb72e0
commit 9593d57914
34 changed files with 142 additions and 101 deletions
+8
View File
@@ -39,6 +39,10 @@ enable = [
"varcheck",
"whitespace",
"gocyclo",
"typecheck",
"asciicheck",
"errorlint",
"sqlclosecheck",
]
# Disabled linters (might want them later)
@@ -95,3 +99,7 @@ text = "404"
[[issues.exclude-rules]]
linters = ["misspell"]
text = "Unknwon` is a misspelling of `Unknown"
[[issues.exclude-rules]]
linters = ["errorlint"]
text = "non-wrapping format verb for fmt.Errorf"