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 21e1124 commit f3dc0eeCopy full SHA for f3dc0ee
.golangci.yml
@@ -31,6 +31,7 @@ linters:
31
- revive
32
# Gocritic
33
- gocritic
34
+ - forbidigo
35
36
# 3. We used to use these, but have now removed them
37
@@ -41,6 +42,12 @@ linters:
41
42
# - nakedret
43
44
settings:
45
+ forbidigo:
46
+ forbid:
47
+ # FIXME: there are still calls to os.WriteFile in tests under `cmd`
48
+ - pattern: ^os\.WriteFile.*$
49
+ pkg: github.com/containerd/nerdctl/v2/pkg
50
+ msg: os.WriteFile is neither atomic nor durable - use nerdctl filesystem.WriteFile instead
51
staticcheck:
52
checks:
53
# Below is the default set
0 commit comments