@@ -95,7 +95,7 @@ func TestTestsAreLintedByDefault(t *testing.T) {
95
95
}
96
96
97
97
func TestCgoOk (t * testing.T ) {
98
- testshared .NewLintRunner (t ).Run ("--no-config" , "--enable-all" , "-D" , "nosnakecase" , getTestDataDir ("cgo" )).ExpectNoIssues ()
98
+ testshared .NewLintRunner (t ).Run ("--no-config" , "--enable-all" , "-D" , "nosnakecase,gci " , getTestDataDir ("cgo" )).ExpectNoIssues ()
99
99
}
100
100
101
101
func TestCgoWithIssues (t * testing.T ) {
@@ -104,6 +104,10 @@ func TestCgoWithIssues(t *testing.T) {
104
104
ExpectHasIssue ("Printf format %t has arg cs of wrong type" )
105
105
r .Run ("--no-config" , "--disable-all" , "-Estaticcheck" , getTestDataDir ("cgo_with_issues" )).
106
106
ExpectHasIssue ("SA5009: Printf format %t has arg #1 of wrong type" )
107
+ r .Run ("--no-config" , "--disable-all" , "-Egofmt" , getTestDataDir ("cgo_with_issues" )).
108
+ ExpectHasIssue ("File is not `gofmt`-ed with `-s` (gofmt)" )
109
+ r .Run ("--no-config" , "--disable-all" , "-Erevive" , getTestDataDir ("cgo_with_issues" )).
110
+ ExpectHasIssue ("indent-error-flow: if block ends with a return statement" )
107
111
}
108
112
109
113
func TestUnsafeOk (t * testing.T ) {
@@ -127,7 +131,7 @@ func TestLineDirectiveProcessedFilesLiteLoading(t *testing.T) {
127
131
}
128
132
129
133
func TestSortedResults (t * testing.T ) {
130
- var testCases = []struct {
134
+ testCases : = []struct {
131
135
opt string
132
136
want string
133
137
}{
0 commit comments