CAST Engineering Dashboard - Violations - False Violation - Avoid Subroutines with a very low comment code ratio RPG300

Purpose

Violation for quality rule ’ Avoid Subroutines with a very low comment/code ratio (RPG300)’ seems to be not correct.

Applicable in CAST Version

ReleaseYes/No
8.3.x

Applicable RDBMS

RDBMSYes/No
CSS

Details

By seeing the below screenshot you can assume that AA05_FIRST has 7 comment lines but there is only one comment which is highlighted in yellow**,** rest are blank comments (C* are not considered as comments as these are blank) which analyzer doesn’t treat as comment. Also note that only inner comment lines are considered while calculating the comment/code ratio & the threshold value of Comment/code ratio is 10 i.e. if the ratio is less than this value it will violate otherwise not and in this case the subroutine has comment/code ratio less than 10, so the violation is correct.

Notes/comments

Related Pages

CAST Engineering Dashboard - Violations - False violation or no violation