We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e64a7a commit 185b1e3Copy full SHA for 185b1e3
1 file changed
.golangci.yml
@@ -6,6 +6,7 @@ linters:
6
- gosec
7
- gosimple
8
- govet
9
+ - forbidigo
10
- importas
11
- ineffassign
12
- misspell
@@ -31,6 +32,12 @@ linters-settings:
31
32
- "true" # some tests use this as expected output
33
- "false" # some tests use this as expected output
34
- "root" # for tests using "ls" output with files owned by "root:root"
35
+ forbidigo:
36
+ forbid:
37
+ - pkg: ^sync/atomic$
38
+ p: ^atomic\.(Add|CompareAndSwap|Load|Store|Swap).
39
+ msg: Go 1.19 atomic types should be used instead.
40
+ analyze-types: true
41
importas:
42
# Do not allow unaliased imports of aliased packages.
43
no-unaliased: true
0 commit comments