You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
79
+
- path: (.+)\.go$
80
+
text: exported method `(.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos)` should have comment or be unexported
81
+
- path: (.+)\.go$
82
+
text: uses unkeyed fields
83
+
- path: (.+)\.go$
84
+
text: declaration of "err" shadows declaration
85
+
- path: (.+)\.go$
86
+
text: bad syntax for struct tag key
87
+
- path: (.+)\.go$
88
+
text: bad syntax for struct tag pair
89
+
- path: (.+)\.go$
90
+
text: ^ST1012
91
+
- path: (.+)\.go$
92
+
text: log/slog.Logger.*must not be called
93
+
- path: (.+)_test\.go$
94
+
text: error returned from external package is unwrapped
95
+
- linters: [staticcheck]
96
+
text: QF1008
97
+
- text: "Error return value of `.*.Write` is not checked"
98
+
linters: [errcheck]
99
+
path: (.+)_test\.go$
100
+
paths:
101
+
- third_party$
102
+
- builtin$
103
+
- examples$
75
104
issues:
76
-
max-per-linter: 0
77
-
max-same: 0
78
-
exclude-use-default: false
79
-
exclude:
80
-
# Captured by errcheck.
81
-
- "^(G104|G204):"
82
-
# Very commonly not checked.
83
-
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
84
-
- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
85
-
- "comment on exported method"
86
-
- "composite literal uses unkeyed fields"
87
-
- 'declaration of "err" shadows declaration'
88
-
- "should not use dot imports"
89
-
- "Potential file inclusion via variable"
90
-
- "should have comment or be unexported"
91
-
- "comment on exported var .* should be of the form"
92
-
- "at least one file in a package should have a package comment"
93
-
- "string literal contains the Unicode"
94
-
- "methods on the same type should have the same receiver name"
0 commit comments