golangci-lint/test/testdata/fix/in/nolintlint.go
2021-03-13 05:11:05 +01:00

18 lines
561 B
Go

//args: -Enolintlint -Elll
//expected_linter: nolintlint
//config: linters-settings.nolintlint.allow-leading-space=false
package p
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
}