Skip to content

Commit 944a3f6

Browse files
committed
newlinter: adding gofuncor integration test
1 parent 5d1fb67 commit 944a3f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/golinters/gofuncor/testdata/gofuncor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//golangcitest:args -Egofuncor
12
package testdata
23

34
import "time"
@@ -6,7 +7,7 @@ type MyStruct struct {
67
Name string
78
}
89

9-
func (m MyStruct) lenName() int { // want `unexported method "lenName" for struct "MyStruct" should be placed after the exported method "GetName"`
10+
func (m MyStruct) lenName() int { // want `unexported method "lenName" for struct "MyStruct" should be placed after the exported method "SetName"`
1011
return len(m.Name)
1112
}
1213

0 commit comments

Comments
 (0)