We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1980fdd commit 7a95ae0Copy full SHA for 7a95ae0
.golangci.yml
@@ -1,5 +1,4 @@
1
version: "2"
2
-
3
run:
4
build-tags:
5
- seccomp
@@ -37,6 +36,12 @@ linters:
37
36
# going to be tricked into overwriting host files.
38
- pattern: ^os\.Create$
39
pkg: ^os$
+ # os.Is* error checking functions predate errors.Is. Therefore, they
40
+ # only support errors returned by the os package and subtly fail
41
+ # to deal with other wrapped error types.
42
+ # New code should use errors.Is(err, error-type) instead.
43
+ - pattern: ^os\.Is(Exist|NotExist|Permission|Timeout)$
44
+ pkg: ^os$
45
analyze-types: true
46
exclusions:
47
rules:
0 commit comments