Skip to content

Commit

Permalink
Merge pull request #394 from ackama:linter/enable-errname
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 716610728
  • Loading branch information
copybara-github committed Jan 17, 2025
2 parents cb4bfa8 + e34731a commit 5ea8a02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ linters:
- durationcheck
# - errcheck
# - errchkjson
# - errname
- errname
# - errorlint
# - exhaustive
# - fatcontext
Expand Down
2 changes: 2 additions & 0 deletions testing/extracttest/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (

// ContainsErrStr is an error that matches other errors that contains
// `str` in their error string.
//
//nolint:errname
type ContainsErrStr struct {
Str string
}
Expand Down

0 comments on commit 5ea8a02

Please sign in to comment.