X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fmvdan.cc%2Fgofumpt%40v0.0.0-20200802201014-ab5a8192947d%2Ftestdata%2Fscripts%2Ffunc-merge-parameters.txt;fp=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fmvdan.cc%2Fgofumpt%40v0.0.0-20200802201014-ab5a8192947d%2Ftestdata%2Fscripts%2Ffunc-merge-parameters.txt;h=0000000000000000000000000000000000000000;hb=3ddadb3c98564791f0ac36cb39771d844a63dc91;hp=408e2930aaffc578761d5838e3c7c10c1b3c0f4a;hpb=5f797af6612ed10887189b47a1efc2f915586e59;p=dotfiles%2F.git diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/mvdan.cc/gofumpt@v0.0.0-20200802201014-ab5a8192947d/testdata/scripts/func-merge-parameters.txt b/.config/coc/extensions/coc-go-data/tools/pkg/mod/mvdan.cc/gofumpt@v0.0.0-20200802201014-ab5a8192947d/testdata/scripts/func-merge-parameters.txt deleted file mode 100644 index 408e2930..00000000 --- a/.config/coc/extensions/coc-go-data/tools/pkg/mod/mvdan.cc/gofumpt@v0.0.0-20200802201014-ab5a8192947d/testdata/scripts/func-merge-parameters.txt +++ /dev/null @@ -1,97 +0,0 @@ -# By default, this rule isn't enabled. -gofumpt foo.go -cmp stdout foo.go - -# It's run with -extra. Note that the flag isn't available in gofumports, -# following the lack of -s. -[!gofumpt] skip -gofumpt -extra foo.go -cmp stdout foo.go.golden - -gofumpt -d foo.go.golden -! stdout . - --- foo.go -- -package p - -type f func(x int, y int) int - -type i interface { - add(x int, y int) -} - -type s struct { - x int - y int -} - -func mergeAdjacent(x int, y int) {} - -func mergeThreeAdjacent(x int, y int, z int) {} - -func mergeOneWithTwo(x, y int, z int) {} - -func mergeTwoWithOne(x int, y, z int) {} - -func mergeWithComment( - x int, y int, // comment -) - -func mergeAllSyntax(x chan []*foo.Bar, y chan []*foo.Bar) {} - -func dontMergeAnonymousParams(int, int) {} - -func dontMergeMultipleLines( - x int, - y int, -) { -} - -func dontMergeMultipleLines2( - x, - y int, - z int, -) { -} --- foo.go.golden -- -package p - -type f func(x, y int) int - -type i interface { - add(x, y int) -} - -type s struct { - x int - y int -} - -func mergeAdjacent(x, y int) {} - -func mergeThreeAdjacent(x, y, z int) {} - -func mergeOneWithTwo(x, y, z int) {} - -func mergeTwoWithOne(x, y, z int) {} - -func mergeWithComment( - x, y int, // comment -) - -func mergeAllSyntax(x, y chan []*foo.Bar) {} - -func dontMergeAnonymousParams(int, int) {} - -func dontMergeMultipleLines( - x int, - y int, -) { -} - -func dontMergeMultipleLines2( - x, - y int, - z int, -) { -}