1 # By default, this rule isn't enabled.
5 # It's run with -extra. Note that the flag isn't available in gofumports,
6 # following the lack of -s.
9 cmp stdout foo.go.golden
11 gofumpt -d foo.go.golden
17 type f func(x int, y int) int
28 func mergeAdjacent(x int, y int) {}
30 func mergeThreeAdjacent(x int, y int, z int) {}
32 func mergeOneWithTwo(x, y int, z int) {}
34 func mergeTwoWithOne(x int, y, z int) {}
36 func mergeWithComment(
37 x int, y int, // comment
40 func mergeAllSyntax(x chan []*foo.Bar, y chan []*foo.Bar) {}
42 func dontMergeAnonymousParams(int, int) {}
44 func dontMergeMultipleLines(
50 func dontMergeMultipleLines2(
59 type f func(x, y int) int
70 func mergeAdjacent(x, y int) {}
72 func mergeThreeAdjacent(x, y, z int) {}
74 func mergeOneWithTwo(x, y, z int) {}
76 func mergeTwoWithOne(x, y, z int) {}
78 func mergeWithComment(
82 func mergeAllSyntax(x, y chan []*foo.Bar) {}
84 func dontMergeAnonymousParams(int, int) {}
86 func dontMergeMultipleLines(
92 func dontMergeMultipleLines2(