Skip to content

Commit

Permalink
Add test for multiple linters
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanbrown committed Feb 20, 2021
1 parent 921ed52 commit 6723032
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/testdata/fix/in/nolintlint.go
Expand Up @@ -7,7 +7,10 @@ import "fmt"
func nolintlint() {
fmt.Println() // nolint:bob // leading space should be dropped
fmt.Println() // nolint:bob // leading spaces should be dropped

// note that the next lines will retain trailing whitespace when fixed
fmt.Println() //nolint // nolint should be dropped
fmt.Println() //nolint:lll // nolint should be dropped

fmt.Println() //nolint:alice,lll // we don't drop individual linters from lists
}
3 changes: 3 additions & 0 deletions test/testdata/fix/out/nolintlint.go
Expand Up @@ -7,7 +7,10 @@ import "fmt"
func nolintlint() {
fmt.Println() //nolint:bob // leading space should be dropped
fmt.Println() //nolint:bob // leading spaces should be dropped

// note that the next lines will retain trailing whitespace when fixed
fmt.Println()
fmt.Println()

fmt.Println() //nolint:alice,lll // we don't drop individual linters from lists
}

0 comments on commit 6723032

Please sign in to comment.