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

pkg/golinters/goimports/testdata/goimports_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import "C"
1313

1414
import (
1515
"fmt"
16-
"unsafe" // want "File is not `goimports`-ed"
16+
"unsafe" // want "File is not properly formatted"
1717
"github.com/golangci/golangci-lint/pkg/config"
1818
)
1919

pkg/golinters/goimports/testdata/goimports_local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package testdata
55
import (
66
"fmt"
77

8-
"github.com/golangci/golangci-lint/pkg/config" // want "File is not `goimports`-ed with -local github.com/golangci/golangci-lint"
8+
"github.com/golangci/golangci-lint/pkg/config" // want "File is not properly formatted"
99
"golang.org/x/tools/go/analysis"
1010
)
1111

test/run_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func TestCgoWithIssues(t *testing.T) {
133133
desc: "gofmt",
134134
args: []string{"--no-config", "--disable-all", "-Egofmt"},
135135
dir: "cgo_with_issues",
136-
expected: "File is not `gofmt`-ed with `-s` (gofmt)",
136+
expected: "File is not properly formatted (gofmt)",
137137
},
138138
{
139139
desc: "revive",
@@ -186,7 +186,7 @@ func TestLineDirective(t *testing.T) {
186186
"--disable-all",
187187
},
188188
targetPath: "linedirective",
189-
expected: "File is not `gofmt`-ed with `-s` (gofmt)",
189+
expected: "File is not properly formatted (gofmt)",
190190
},
191191
{
192192
desc: "goimports",
@@ -195,7 +195,7 @@ func TestLineDirective(t *testing.T) {
195195
"--disable-all",
196196
},
197197
targetPath: "linedirective",
198-
expected: "File is not `goimports`-ed (goimports)",
198+
expected: "File is not properly formatted (goimports)",
199199
},
200200
{
201201
desc: "gomodguard",

0 commit comments

Comments
 (0)