Skip to content

identical-if-chain-conditions

Detect repeated if-chain conditions.

Updated View as Markdown

Default severity: warning

Detect repeated if-chain conditions.

Bad

if ready { one() } else if ready { two() }

Good

if first { one() } else if second { two() }
Navigation

Type to search…

↑↓ navigate↵ selectEsc close