golangci-lint/test/testdata/gofmt.go

10 lines
159 B
Go
Raw Normal View History

// args: -Egofmt
2018-05-06 09:41:48 +03:00
package testdata
import "fmt"
2018-05-06 14:51:06 +03:00
func GofmtNotSimplified() {
2018-05-06 09:41:48 +03:00
var x []string
fmt.Print(x[1:len(x)]) // ERROR "File is not gofmt-ed with -s"
2018-05-06 09:41:48 +03:00
}