Skip to content

Commit

Permalink
Fix nolintlint fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanbrown committed Feb 20, 2021
1 parent cda6e99 commit 921ed52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions test/testdata/fix/in/nolintlint.go
Expand Up @@ -10,7 +10,4 @@ func nolintlint() {
// 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,bob // enabled linter should be dropped
fmt.Println() //nolint:alice,lll, bob // enabled linter should be dropped but whitespace preserved
fmt.Println() //nolint:alice,lll,bob,nolintlint // enabled linter should not be dropped when nolintlint is nolinted
}
3 changes: 0 additions & 3 deletions test/testdata/fix/out/nolintlint.go
Expand Up @@ -10,7 +10,4 @@ func nolintlint() {
// note that the next lines will retain trailing whitespace when fixed
fmt.Println()
fmt.Println()
fmt.Println() //nolint:alice,bob // enabled linter should be dropped
fmt.Println() //nolint:alice, bob // enabled linter should be dropped but whitespace preserved
fmt.Println() //nolint:alice,lll,bob,nolintlint // enabled linter should not be dropped when nolintlint is nolinted
}

0 comments on commit 921ed52

Please sign in to comment.