Skip to content

Commit 6723032

Browse files
committed
Add test for multiple linters
1 parent 921ed52 commit 6723032

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/testdata/fix/in/nolintlint.go

+3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import "fmt"
77
func nolintlint() {
88
fmt.Println() // nolint:bob // leading space should be dropped
99
fmt.Println() // nolint:bob // leading spaces should be dropped
10+
1011
// note that the next lines will retain trailing whitespace when fixed
1112
fmt.Println() //nolint // nolint should be dropped
1213
fmt.Println() //nolint:lll // nolint should be dropped
14+
15+
fmt.Println() //nolint:alice,lll // we don't drop individual linters from lists
1316
}

test/testdata/fix/out/nolintlint.go

+3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import "fmt"
77
func nolintlint() {
88
fmt.Println() //nolint:bob // leading space should be dropped
99
fmt.Println() //nolint:bob // leading spaces should be dropped
10+
1011
// note that the next lines will retain trailing whitespace when fixed
1112
fmt.Println()
1213
fmt.Println()
14+
15+
fmt.Println() //nolint:alice,lll // we don't drop individual linters from lists
1316
}

0 commit comments

Comments
 (0)