Skip to content

Commit 95736a6

Browse files
committed
lint: enable errorlint
This commit enables a linter which checks to ensure that we do not incorrectly use a non-wrapping format verb when trying to wrap an error with `fmt.Errorf`.
1 parent d37b486 commit 95736a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ run:
33
deadline: 4m
44

55
linters-settings:
6+
errorlint:
7+
comparison: false
8+
asserts: false
69
govet:
710
# Don't report about shadowed variables
811
check-shadowing: false
@@ -26,6 +29,7 @@ linters-settings:
2629

2730
linters:
2831
enable:
32+
- errorlint
2933
- gofmt
3034
- tagliatelle
3135
- whitespace

0 commit comments

Comments
 (0)