Skip to content

Commit

Permalink
ci: add errorlint linter
Browse files Browse the repository at this point in the history
Use a minimal config to only warn about not using %w to wrap errors.

Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Aug 15, 2024
1 parent 68f145b commit 9a7a3ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@
run:
concurrency: 6
timeout: 5m

linters:
enable:
- errorlint

linters-settings:
errorlint:
# See https://golangci-lint.run/usage/linters/#errorlint.
# Only allow warnings about not using %w.
errorf-multi: false
asserts: false
comparison: false

0 comments on commit 9a7a3ef

Please sign in to comment.