We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e4a868 commit 34bd373Copy full SHA for 34bd373
test/testdata/nolintlint_unused.go
@@ -5,7 +5,7 @@ package testdata
5
import "fmt"
6
7
func Foo() {
8
- fmt.Println("unused") //nolint // ERROR "directive `//nolint .*` is unused"
9
- fmt.Println("unused,specific") //nolint:varcheck // ERROR "directive `//nolint:varcheck .*` is unused for linter varcheck"
10
- fmt.Println("not run") //nolint:unparam // unparam is not run so this is ok
+ fmt.Println("unused") // nolint // ERROR "directive `//nolint .*` is unused"
+ fmt.Println("unused,specific") // nolint:varcheck // ERROR "directive `//nolint:varcheck .*` is unused for linter varcheck"
+ fmt.Println("not run") // nolint:unparam // unparam is not run so this is ok
11
}
0 commit comments