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
assert.Fail(t, "could not infer expected linter for errors because multiple linters are enabled. Please use the `expected_linter: ` directive in your test to indicate the linter-under-test.") //nolint:lll
Copy file name to clipboardExpand all lines: test/testdata/default_exclude.go
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@
4
4
/*Package testdata ...*/
5
5
package testdata
6
6
7
-
// InvalidFuncComment, both golint and stylecheck will complain about this, // ERROR `ST1020: comment on exported function ExportedFunc1 should be of the form "ExportedFunc1 ..."`
7
+
// InvalidFuncComment, both golint and stylecheck will complain about this, // ERROR stylecheck `ST1020: comment on exported function ExportedFunc1 should be of the form "ExportedFunc1 ..."`
8
8
// if include EXC0011, only the warning from golint will be ignored.
9
9
// And only the warning from stylecheck will start with "ST1020".
10
10
funcExportedFunc1() {
11
11
}
12
12
13
-
// InvalidFuncComment // ERROR `ST1020: comment on exported function ExportedFunc2 should be of the form "ExportedFunc2 ..."`
13
+
// InvalidFuncComment // ERROR stylecheck `ST1020: comment on exported function ExportedFunc2 should be of the form "ExportedFunc2 ..."`
Copy file name to clipboardExpand all lines: test/testdata/gocritic.go
+1-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ import (
7
7
"log"
8
8
)
9
9
10
-
var_=*flag.Bool("global1", false, "") // ERROR "flagDeref: immediate deref in \*flag.Bool\(.global1., false, ..\) is most likely an error; consider using flag\.BoolVar"
10
+
var_=*flag.Bool("global1", false, "") // ERROR `flagDeref: immediate deref in \*flag.Bool\(.global1., false, ..\) is most likely an error; consider using flag\.BoolVar`
0 commit comments