github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/fix/out/nolintlint.go (about)

     1  //golangcitest:args -Enolintlint -Elll
     2  //golangcitest:expected_linter nolintlint
     3  package p
     4  
     5  import "fmt"
     6  
     7  func nolintlint() {
     8  	fmt.Println() //nolint:bob // leading space should be dropped
     9  	fmt.Println() //nolint:bob // leading spaces should be dropped
    10  
    11  	// note that the next lines will retain trailing whitespace when fixed
    12  	fmt.Println() 
    13  	fmt.Println() 
    14  
    15  	fmt.Println() //nolint:alice,lll // we don't drop individual linters from lists
    16  }