Skip to content

Commit ca1e9f1

Browse files
committed
chore(dev): allow to define dynamic string errors
1 parent 5280755 commit ca1e9f1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ linters:
1414
- linters:
1515
- err113
1616
path: _test\.go
17+
- linters:
18+
- err113
19+
text: "do not define dynamic errors, use wrapped static errors instead"
1720
- linters:
1821
- dupl
1922
path: pkg/provider/.*\.go

pkg/nameserver/getlocal_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ func joinErrs(errs []error) error {
6262
for i := range errs {
6363
args[i] = errs[i]
6464
}
65-
return fmt.Errorf(format, args...) //nolint:err113
65+
return fmt.Errorf(format, args...)
6666
}

0 commit comments

Comments
 (0)