Skip to content

Commit 46c6af6

Browse files
committed
Lint: staticcheck review remaining checks
Signed-off-by: apostasie <[email protected]>
1 parent 1298c20 commit 46c6af6

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.golangci.yml

+17-5
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,23 @@ linters:
5151
- "-ST1020"
5252
- "-ST1021"
5353
- "-ST1022"
54-
# FIXME: this below this point is disabled for now, but we should investigate
55-
- "-QF1008" # Omit embedded fields from selector expression https://staticcheck.dev/docs/checks#QF1008
56-
- "-QF1003" # Convert if/else-if chain to tagged switch https://staticcheck.dev/docs/checks#QF1003
57-
- "-QF1001" # Apply De Morgan’s law https://staticcheck.dev/docs/checks#QF1001
58-
- "-QF1012" # Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...)) https://staticcheck.dev/docs/checks#QF1012
54+
55+
##### TODO: fix and enable these
56+
# 4 occurrences.
57+
# Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...)) https://staticcheck.dev/docs/checks#QF1012
58+
- "-QF1012"
59+
# 6 occurrences.
60+
# Apply De Morgan’s law https://staticcheck.dev/docs/checks#QF1001
61+
- "-QF1001"
62+
# 10 occurrences.
63+
# Convert if/else-if chain to tagged switch https://staticcheck.dev/docs/checks#QF1003
64+
- "-QF1003"
65+
66+
##### These have been vetted to be disabled.
67+
# 55 occurrences. Omit embedded fields from selector expression https://staticcheck.dev/docs/checks#QF1008
68+
# Usefulness is questionable.
69+
- "-QF1008"
70+
5971
revive:
6072
enable-all-rules: true
6173
rules:

0 commit comments

Comments
 (0)