Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mvdan/unindent
- Owner: mvdan
- License: bsd-3-clause
- Created: 2017-08-17T11:26:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T20:04:07.000Z (about 7 years ago)
- Last Synced: 2024-08-03T17:09:36.963Z (3 months ago)
- Topics: go, indentation, linter, simplify
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 19
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
}
```