Skip to content

Commit 1bf0125

Browse files
committed
newlinter: fixing the last checks
1 parent 9b578c6 commit 1bf0125

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ require (
7373
github.com/ldez/usetesting v0.4.2
7474
github.com/leonklingele/grouper v1.1.2
7575
github.com/macabu/inamedparam v0.2.0
76-
github.com/manuelarte/gofuncor v0.0.4
76+
github.com/manuelarte/gofuncor v0.1.0
7777
github.com/maratori/testableexamples v1.0.0
7878
github.com/maratori/testpackage v1.1.1
7979
github.com/matoous/godox v1.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/gofuncor/testdata/gofuncor.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package testdata
22

3+
import "time"
4+
35
type MyStruct struct {
46
Name string
57
}
@@ -31,3 +33,7 @@ func (m *MyStruct2) SetName(name string) {
3133
func NewMyStruct2() *MyStruct2 { // want `constructor \"NewMyStruct2\" for struct \"MyStruct2\" should be placed before struct method \"GetName\"`
3234
return &MyStruct2{Name: "John"}
3335
}
36+
37+
func NewTime() time.Time {
38+
return time.Now()
39+
}

0 commit comments

Comments
 (0)