github.com/elek/golangci-lint@v1.42.2-0.20211208090441-c05b7fcb3a9a/test/testdata/fix/out/nolintlint.go (about) 1 //args: -Enolintlint -Elll 2 //expected_linter: nolintlint 3 //config: linters-settings.nolintlint.allow-leading-space=false 4 package p 5 6 import "fmt" 7 8 func nolintlint() { 9 fmt.Println() //nolint:bob // leading space should be dropped 10 fmt.Println() //nolint:bob // leading spaces should be dropped 11 12 // note that the next lines will retain trailing whitespace when fixed 13 fmt.Println() 14 fmt.Println() 15 16 fmt.Println() //nolint:alice,lll // we don't drop individual linters from lists 17 }