Skip to content

Commit

Permalink
golangci-lint message, comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jan 16, 2024
1 parent aed4593 commit d16937c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .golangci.yml
Expand Up @@ -54,7 +54,7 @@ linters-settings:
main:
deny:
- pkg: "github.com/pkg/errors"
desc: "errors.New() is deprecated in favor of fmt.Errorf()"
desc: "errors.Wrap() is deprecated in favor of fmt.Errorf()"

linters:
enable-all: true
Expand Down Expand Up @@ -287,7 +287,8 @@ issues:
- bodyclose
text: "response body must be closed"

# named/naked returns are evil
# named/naked returns are evil, with a single exception
# https://go.dev/wiki/CodeReviewComments#named-result-parameters
- linters:
- nonamedreturns
text: "named return .* with type .* found"
Expand Down

0 comments on commit d16937c

Please sign in to comment.