Static Code Analysis Summary button in User Story is not showing results

We have improved the Static Code Analysis feature in Copado v11. If you are in a previous version of Copado, the button Static Code Analysis Summary in the user stories will not display results. In order to use this feature you must upgrade to Copado v11. You will find the instructions to upgrade to the latest version of Copado in the article How Do I Upgrade to the Latest Version?.

After the upgrade, you must follow the instructions below (included in the article Version 11 - Upgrade Instructions) to make sure you can use the feature.

  1. Grant FLS in the profile to the following fields:

Object: Static_Code_Analysis_Violation__c

Fields:

copado__Static_Code_Analysis_Violation__c.File__c

copado__Static_Code_Analysis_Violation__c.Line__c

copado__Static_Code_Analysis_Violation__c.Priority__c

copado__Static_Code_Analysis_Violation__c.Rule__c

copado__Static_Code_Analysis_Violation__c.Message__c

copado__Static_Code_Analysis_Violation__c.Score__c

copado__Static_Code_Analysis_Violation__c.Info_URL__c

copado__Static_Code_Analysis_Violation__c.Static_Code_Analysis_Result__c

copado__Static_Code_Analysis_Violation__c.Info_URL_Link__c

Object: Static_Code_Analysis_Result__c

Fields:

copado__Static_Code_Analysis_Result__c.Number_of_Violations__c

copado__Static_Code_Analysis_Result__c.Details__c

copado__Static_Code_Analysis_Result__c.Score_v11__c

  1. Remove the Static Code Analysis Summary button in the User Story layout.
  2. In the Static Code Analysis Result layout:
  • Remove: Rules Violated and copado.Score.
  • Include: Number of Violations and copado.Score_v11.
  • Include: Static Code Analysis Violations related list. We recommend adding Name, File, Rule, Priority, Message and Info URL fields to this related list.
 

 

Once this is done, in order to check the Static Code Analysis results you have to go to the latest Static Code Analysis Result in the user story and navigate to the Static Code Analysis Violations related list.

 


How did we do?