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 536e183 commit 58d24d2Copy full SHA for 58d24d2
.golangci.yml
@@ -37,6 +37,12 @@ linters:
37
# going to be tricked into overwriting host files.
38
- pattern: ^os\.Create$
39
pkg: ^os$
40
+ # os.Is* error checking functions predate errors.Is. Therefore, they
41
+ # only support errors returned by the os package and subtly fail
42
+ # to deal with other wrapped error types.
43
+ # New code should use errors.Is(err, error-type) instead.
44
+ - pattern: ^os\.Is(Exist|NotExist|Permission|Timeout)$
45
+ pkg: ^os$
46
analyze-types: true
47
exclusions:
48
rules:
0 commit comments