CAST Engineering Dashboard - Violations - False Violation - Avoid Artifacts with High Depth of Code

Purpose

Violation for quality rule ‘Avoid Artifacts with High Depth of Code’ seems to be not correct

Applicable in CAST Version

ReleaseYes/No
8.3.x

Applicable RDBMS

RDBMSYes/No
CSS

Action Plan

Although the source code  seems to have only 2 levels of if/else and no loops,

  1. Check the source code not for levels of nesting but for the branches. This Quality rule is not dependent on levels but on the control flow.
    1. In the code check if there are more than 5 branches to if/else.

Notes/comments

Related Pages

CAST Engineering Dashboard - Violations - False violation or no violation