Skip to content

tidy: condense variable declarations

Warren Gifford requested to merge sourcegraph/campaign-5 into master

Created by: rvantonder

Condenses consecutive variable declarations with the same type. Example:

var x int
var y int

becomes

var x, y int

Created with

{
    "matchTemplate": "var :[[x]] :[t.] var :[[y]] :[t.]",
    "rewriteTemplate": "var :[[x]], :[[y]] :[[t]]",
    "scopeQuery": "repo:github.com/sourcegraph/sourcegraph$ lang:go"
}

Merge request reports

Loading