golangci-lint/test/testdata/whitespace.go
2019-09-10 13:25:01 +03:00

21 lines
257 B
Go

//args: -Ewhitespace
package testdata
func UselessStart() { // ERROR "unnecessary leading newline"
a := 1
_ = a
}
func UselessEnd() {
a := 1
_ = a
} // ERROR "unnecessary trailing newline"
func CommentsShouldBeIgnored() {
// test
a := 1
_ = a
}