Skip to content

Commit 4af98e1

Browse files
authored
chore(golangci-lint): exclude some errcheck again (#911)
1 parent 0310a7e commit 4af98e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ issues:
3434
# default exclusions here and add exclusions fitting our codebase
3535
# further down.
3636
exclude-use-default: false
37+
exclude-rules:
38+
- linters:
39+
- errcheck
40+
# Taken from the default exclusions (that are otherwise disabled above).
41+
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
3742

3843
linters-settings:
3944
errcheck:

0 commit comments

Comments
 (0)