Glavin001 / Glavin001/tslint-clean-code
New rule: avoid-if-else
Open
good first issue
rule
- Dominant language
- TypeScript
- Stars
- 175
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
http://blog.timoxley.com/post/47041269194/avoid-else-return-early
Use of if-else is always unnecessary, and leads to cyclomatic complexity. Other clean code linters (phpmd, golint) enforce this pattern. Would love to have this rule as I have to enforce it manually in my typescript projects right now.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.