Skip to content

Commit 0a162a9

Browse files
authored
Merge pull request kubernetes#123263 from pohly/lint-error-wrapping
golangci-lint: add hints for error wrapping
2 parents 2383fbe + 8876b68 commit 0a162a9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

hack/golangci-hints.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ linters:
8484
- ginkgolinter
8585
- gocritic
8686
- govet
87+
- errorlint
8788
- ineffassign
8889
- logcheck
8990
- revive

hack/golangci.yaml.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ linters:
140140
- ginkgolinter
141141
- gocritic
142142
- govet
143+
{{- if .Hints}}
144+
- errorlint
145+
{{- end}}
143146
- ineffassign
144147
- logcheck
145148
- revive

0 commit comments

Comments
 (0)