golangci-lint/test/testdata/gofmt_no_simplify.go
Denis Isaev 6508d1623a fix #513: don't add gofmt "with -s" if not needed
Output
  File is not `gofmt`-ed
insted of
  File is not `gofmt`-ed  with `-s`
when gofmt.simplify == false
2019-06-09 16:22:41 +03:00

14 lines
231 B
Go

//args: -Egofmt
//config: linters-settings.gofmt.simplify=false
package testdata
import "fmt"
func GofmtNotSimplifiedOk() {
var x []string
fmt.Print(x[1:len(x)])
}
func GofmtBadFormat(){ // ERROR "^File is not `gofmt`-ed$"
}