Nested IFs

Keep your code easy to read and test by containing the use of nested conditional structures.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over a week ago

Rationale

Nesting too many if  statements makes the code harder to read, more prone to bugs and in general difficult to maintain.

Rule parameters

  • You may set the max number of acceptable nested IFs

Did this answer your question?