Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 313 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 313 Bytes

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
	}
}