unindent

command module
v0.0.0-...-ff6a341 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2017 License: BSD-3-Clause Imports: 12 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL