File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,23 @@ linters:
51
51
- " -ST1020"
52
52
- " -ST1021"
53
53
- " -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
+
59
71
revive :
60
72
enable-all-rules : true
61
73
rules :
You can’t perform that action at this time.
0 commit comments