Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvdan/unindent

Report code that is unnecessarily indented
https://github.com/mvdan/unindent

go indentation linter simplify

Last synced: about 1 month ago
JSON representation

Report code that is unnecessarily indented

Awesome Lists containing this project

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