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: testdata/enforce-repeated-arg-type-style-short-return.go
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,18 @@ package fixtures
3
3
funccompliantFunc() (a, bint, cstring) { panic("implement me") } // Must not match - compliant with rule
4
4
funccompliantFunc2() (int, int, string) // Must not match - compliant with rule
5
5
6
-
funcnonCompliantFunc1() (aint, bint, cstring) { panic("implement me") } // MATCH /repeated return type can be omitted/
7
-
funcnonCompliantFunc2() (aint, b, cint) { panic("implement me") } // MATCH /repeated return type can be omitted/
6
+
funcnonCompliantFunc1() (aint, bint, cstring) { panic("implement me") } // MATCH /repeated return type "int" can be omitted/
7
+
funcnonCompliantFunc2() (aint, b, cint) { panic("implement me") } // MATCH /repeated return type "int" can be omitted/
8
8
9
9
typemyStructstruct{}
10
10
11
11
func (mmyStruct) compliantMethod() (a, bint, cstring) { panic("implement me") } // Must not match - compliant with rule
12
12
13
-
func (mmyStruct) nonCompliantMethod1() (aint, bint, cstring) { panic("implement me") } // MATCH /repeated return type can be omitted/
14
-
func (mmyStruct) nonCompliantMethod2() (aint, b, cint) { panic("implement me") } // MATCH /repeated return type can be omitted/
13
+
func (mmyStruct) nonCompliantMethod1() (aint, bint, cstring) { panic("implement me") } // MATCH /repeated return type "int" can be omitted/
14
+
func (mmyStruct) nonCompliantMethod2() (aint, b, cint) { panic("implement me") } // MATCH /repeated return type "int" can be omitted/
15
15
16
16
funcsingleArgFunction() (aint) { panic("implement me") } // Must not match - only one return
17
17
18
18
funcmultiTypeArgs() (aint, bstring, cfloat64) { panic("implement me") } // Must not match - different types for each return
19
19
20
-
funcmixedCompliance() (a, bint, cint, dstring) { panic("implement me") } // MATCH /repeated return type can be omitted/ - 'c int' could be combined with 'a, b int'
20
+
funcmixedCompliance() (a, bint, cint, dstring) { panic("implement me") } // MATCH /repeated return type "int" can be omitted/ - 'c int' could be combined with 'a, b int'
0 commit comments