Assign Environment Maximum Static Code Analysis Score

Updated 3 weeks ago by Copado Solutions

The Maximum SCA Score is a value you can assign to an environment if you don’t want that the violations found during a static code analysis scan exceed a certain score.

When you create a rule to be used during a scan, you have to give it a priority depending on the importance this rule has with regard to your business needs. This priority is later used in the violation score, which is calculated by subtracting the selected rule priority from 6 (6 - selected priority).

If you are using PMD, the Maximum SCA Score value will be used as a reference in the SCA Result graph on the Promotion page, where you can compare the violations’ score against the Maximum SCA Score.

To assign a Maximum SCA Score value to an environment, you just need to navigate to the Environment record and add the desired value to the Maximum SCA Score field.


How did we do?