This page provides information on the metric "Avoid Artifacts with high Commented-out Code Lines/Code Lines ratio", which may appear as a new violation in a dashboard when there is no change in a particular file.
Release | Yes/No |
---|---|
8.3.x |
RDBMS | Yes/No |
---|---|
CSS |
You can get new violations for the rule "Avoid Artifact with high Commented-out Code Lines/Code Lines ratio" even when there has been no code change for a particular file.
Changes in other parts of the code may cause this metric to become activated and show a new violation for an unchanged object.
This rule only gets activated if the following criteria are met :
- The source code must contain more than 20 "clean" comments
- The source code must contain at least 80 artifacts that have more than 10 lines of code
If you did not meet these criteria in a previous analysis, then you would not have a violation for this metric. If your code has changed so that you now met these criteria, then you will see this as a new violation, possibly on unchanged objects.
You can see more details on this metric, including definition of the terms used in its calculation (like the definition of a "clean" comment) in the metric documentation for your release.
Ticket # 2367