mvdan / unindent

Report code that is unnecessarily indented

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unindent

go get -u mvdan.cc/unindent

Reports code that is unnecessarily indented. Examples include:

for _, elem := range list {
	if cond {
		// here be many lines
	}
}
if cond1 {
	if cond2 {
		// here be many lines
	}
}
if cond1 {
} else {
	if cond2 {
		// here be many lines
	}
}

About

Report code that is unnecessarily indented

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%