Glavin001/tslint-clean-code

max-conditional-depth

Open

#19 opened on 2017年9月13日

GitHub で見る
 (1 comment) (0 reactions) (1 assignee)TypeScript (15 forks)github user discovery
good first issuerule

Repository metrics

Stars
 (175 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

For example:

variable = condition1 ? ifTrueDoThis : (condition2 ? ifTrueDoThis : (condition3 ? ifTrueDoThis : ifFalseDoThis));

and

variable = condition1 && condition2 ? ifTrueDoThis : (condition3 || condition4 ? ifTrueDoThis : (condition5 && condition6 ? ifTrueDoThis : ifFalseDoThis));

These are too long and too deep. Let's limit the depth!

コントリビューターガイド