Skip to content

Commit 89e8fa5

Browse files
committed
tests: fix
1 parent 59b16cc commit 89e8fa5

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

pkg/golinters/gci/testdata/gci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//golangcitest:config_path testdata/gci.yml
33
package testdata
44

5-
// want +1 "Invalid import order"
5+
// want +1 "File is not properly formatted"
66
import (
77
"golang.org/x/tools/go/analysis"
88
"github.com/golangci/golangci-lint/pkg/config"

pkg/golinters/gci/testdata/gci_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package testdata
1616
*/
1717
import "C"
1818

19-
// want +1 "Invalid import order"
19+
// want +1 "File is not properly formatted"
2020
import (
2121
"golang.org/x/tools/go/analysis"
2222
"github.com/golangci/golangci-lint/pkg/config"

pkg/golinters/gofmt/testdata/gofmt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import "fmt"
55

66
func GofmtNotSimplified() {
77
var x []string
8-
fmt.Print(x[1:len(x)]) // want "File is not `gofmt`-ed with `-s`"
8+
fmt.Print(x[1:len(x)]) // want "File is not properly formatted"
99
}

pkg/golinters/gofmt/testdata/gofmt_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ func _() {
2424

2525
func GofmtNotSimplified() {
2626
var x []string
27-
fmt.Print(x[1:len(x)]) // want "File is not `gofmt`-ed with `-s`"
27+
fmt.Print(x[1:len(x)]) // want "File is not properly formatted"
2828
}

pkg/golinters/gofmt/testdata/gofmt_no_simplify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ func GofmtNotSimplifiedOk() {
99
fmt.Print(x[1:len(x)])
1010
}
1111

12-
func GofmtBadFormat(){ // want "^File is not `gofmt`-ed"
12+
func GofmtBadFormat(){ // want "File is not properly formatted"
1313
}

pkg/golinters/gofmt/testdata/gofmt_rewrite_rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func GofmtRewriteRule() {
1111
vals = append(vals, 2)
1212
vals = append(vals, 3)
1313

14-
slice := vals[1:len(vals)] // want "^File is not `gofmt`-ed"
14+
slice := vals[1:len(vals)] // want "File is not properly formatted"
1515

1616
fmt.Println(slice)
1717
}

pkg/golinters/gofumpt/testdata/gofumpt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package testdata
44
import "fmt"
55

66
func GofumptNewLine() {
7-
fmt.Println( "foo" ) // want "File is not `gofumpt`-ed"
7+
fmt.Println( "foo" ) // want "File is not properly formatted"
88
}

pkg/golinters/gofumpt/testdata/gofumpt_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ func _() {
2323
}
2424

2525
func GofumptNewLine() {
26-
fmt.Println( "foo" ) // want "File is not `gofumpt`-ed"
26+
fmt.Println( "foo" ) // want "File is not properly formatted"
2727
}

pkg/golinters/gofumpt/testdata/gofumpt_with_extra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ package testdata
44

55
import "fmt"
66

7-
func GofmtNotExtra(bar string, baz string) { // want "File is not `gofumpt`-ed with `-extra`"
7+
func GofmtNotExtra(bar string, baz string) { // want "File is not properly formatted"
88
fmt.Print("foo")
99
}

pkg/golinters/goimports/testdata/goimports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package testdata
33

44
import (
5-
"fmt" // want "File is not `goimports`-ed"
5+
"fmt" // want "File is not properly formatted"
66
"github.com/golangci/golangci-lint/pkg/config"
77
)
88

0 commit comments

Comments
 (0)