You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/golinters/iface/testdata/iface_all.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ import "fmt"
6
6
7
7
// identical
8
8
9
-
typePingerinterface { // want "identical: interface Pinger contains identical methods or type constraints from another interface, causing redundancy"
9
+
typePingerinterface { // want "identical: interface 'Pinger' contains identical methods or type constraints with another interface, causing redundancy"
10
10
Ping() error
11
11
}
12
12
13
-
typeHealthcheckinterface { // want "identical: interface Healthcheck contains identical methods or type constraints from another interface, causing redundancy"
13
+
typeHealthcheckinterface { // want "identical: interface 'Healthcheck' contains identical methods or type constraints with another interface, causing redundancy"
14
14
Ping() error
15
15
}
16
16
@@ -28,7 +28,7 @@ func (s server) Serve() error {
28
28
returnnil
29
29
}
30
30
31
-
funcNewServer(addrstring) Server { // want "opaque: NewServer function return Server interface at the 1st result, abstract a single concrete implementation of \\*server"
31
+
funcNewServer(addrstring) Server { // want "opaque: 'NewServer' function return 'Server' interface at the 1st result, abstract a single concrete implementation of '\\*server'"
32
32
return&server{addr: addr}
33
33
}
34
34
@@ -39,7 +39,7 @@ type User struct {
39
39
Namestring
40
40
}
41
41
42
-
typeUserRepositoryinterface { // want "unused: interface UserRepository is declared but not used within the package"
42
+
typeUserRepositoryinterface { // want "unused: interface 'UserRepository' is declared but not used within the package"
Copy file name to clipboardExpand all lines: pkg/golinters/iface/testdata/iface_cgo.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,11 @@ func _() {
24
24
25
25
// identical
26
26
27
-
typePingerinterface { // want "identical: interface Pinger contains identical methods or type constraints from another interface, causing redundancy"
27
+
typePingerinterface { // want "identical: interface 'Pinger' contains identical methods or type constraints with another interface, causing redundancy"
28
28
Ping() error
29
29
}
30
30
31
-
typeHealthcheckinterface { // want "identical: interface Healthcheck contains identical methods or type constraints from another interface, causing redundancy"
31
+
typeHealthcheckinterface { // want "identical: interface 'Healthcheck' contains identical methods or type constraints with another interface, causing redundancy"
Copy file name to clipboardExpand all lines: pkg/golinters/iface/testdata/iface_default.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ import "fmt"
5
5
6
6
// identical
7
7
8
-
typePingerinterface { // want "identical: interface Pinger contains identical methods or type constraints from another interface, causing redundancy"
8
+
typePingerinterface { // want "identical: interface 'Pinger' contains identical methods or type constraints with another interface, causing redundancy"
9
9
Ping() error
10
10
}
11
11
12
-
typeHealthcheckinterface { // want "identical: interface Healthcheck contains identical methods or type constraints from another interface, causing redundancy"
12
+
typeHealthcheckinterface { // want "identical: interface 'Healthcheck' contains identical methods or type constraints with another interface, causing redundancy"
Copy file name to clipboardExpand all lines: pkg/golinters/iface/testdata/iface_identical.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ import "fmt"
6
6
7
7
// identical
8
8
9
-
typePingerinterface { // want "identical: interface Pinger contains identical methods or type constraints from another interface, causing redundancy"
9
+
typePingerinterface { // want "identical: interface 'Pinger' contains identical methods or type constraints with another interface, causing redundancy"
10
10
Ping() error
11
11
}
12
12
13
-
typeHealthcheckinterface { // want "identical: interface Healthcheck contains identical methods or type constraints from another interface, causing redundancy"
13
+
typeHealthcheckinterface { // want "identical: interface 'Healthcheck' contains identical methods or type constraints with another interface, causing redundancy"
Copy file name to clipboardExpand all lines: pkg/golinters/iface/testdata/iface_opaque.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ func (s server) Serve() error {
28
28
returnnil
29
29
}
30
30
31
-
funcNewServer(addrstring) Server { // want "opaque: NewServer function return Server interface at the 1st result, abstract a single concrete implementation of \\*server"
31
+
funcNewServer(addrstring) Server { // want "opaque: 'NewServer' function return 'Server' interface at the 1st result, abstract a single concrete implementation of '\\*server'"
funcReadAll(runexportedReader) ([]byte, error) { // want "unexported interface 'unexportedReader' used as parameter in exported function 'ReadAll'"
77
+
buf:=make([]byte, 1024)
78
+
_, err:=r.Read(buf)
79
+
returnbuf, err
80
+
}
81
+
82
+
funcNewUnexportedReader() unexportedReader { // want "unexported interface 'unexportedReader' used as return value in exported function 'NewUnexportedReader'"
0 commit comments