You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Such rules are similar but not quite what I need. They only enforce that if the if branch has a return, else is unnecessary. We expressly forbid use of else, period. In SRP code it is a clear code smell.
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.
The text was updated successfully, but these errors were encountered: