Skip to content

Commit 085ba9b

Browse files
committed
Add staticcheck exclusions to keep lint happy
1 parent 1ec77eb commit 085ba9b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.golangci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ linters:
2929
- third_party$
3030
- builtin$
3131
- examples$
32+
settings:
33+
staticcheck:
34+
checks:
35+
- all
36+
- '-QF1001' # "could apply De Morgan's law" -- https://staticcheck.dev/docs/checks/#QF1001
37+
- '-QF1002' # "could use tagged switch" -- https://staticcheck.dev/docs/checks/#QF1002
38+
- '-QF1004' # "could use strings.ReplaceAll instead" -- https://staticcheck.dev/docs/checks/#QF1004
39+
- '-QF1008' # "could remove embedded field "Block" from selector" -- https://staticcheck.dev/docs/checks/#QF1008
40+
- '-ST1003' # example: "const autoTFVarsJson should be autoTFVarsJSON" -- https://staticcheck.dev/docs/checks/#ST1003
41+
- '-ST1005' # "error strings should not end with punctuation or newlines" -- https://staticcheck.dev/docs/checks/#ST1005
42+
- '-ST1016' # example: "methods on the same type should have the same receiver name (seen 2x "r", 2x "s")" -- https://staticcheck.dev/docs/checks/#ST1016
3243
issues:
3344
max-issues-per-linter: 0
3445
max-same-issues: 0

0 commit comments

Comments
 (0)