Glavin001/tslint-clean-code

New rule: avoid-if-else

Open

#39 建立於 2018年1月28日

在 GitHub 查看
 (3 留言) (1 反應) (0 負責人)TypeScript (15 fork)github user discovery
good first issuerule

倉庫指標

Star
 (175 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南