Skip to content

Commit

Permalink
golangci-lint: replace goerr113 with err113 linter
Browse files Browse the repository at this point in the history
Because of warning: The name "goerr113" is deprecated. The linter has
been renamed to: err113. Not having the new name made the exclude-rule
to not being applied.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
  • Loading branch information
mtardy committed Jun 3, 2024
1 parent 56d9be5 commit 6449b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ output:
linters:
disable-all: true
enable:
- goerr113
- err113
- goheader
- goimports
- govet
Expand Down Expand Up @@ -41,7 +41,7 @@ issues:
max-same-issues: 0
exclude-rules:
# Disallows any kind of `fmt.Errorf("%s is too high", bar)`, too opinionated.
- linters: [goerr113]
- linters: [err113]
text: "do not define dynamic errors, use wrapped static errors instead"
# Most exported consts are self-descriptive.
- linters: [revive]
Expand Down

0 comments on commit 6449b33

Please sign in to comment.