CAST HIGHLIGHT - Green Impact - How to find the number of Green Deficiency Occurrences in each file?

Highlight is not showing the number of Green Deficiency Occurrences in each file.

Knowing the number of Green Deficiency Occurrences in each file is a necessity, when there are large number of files This is because it becomes difficult to check how many belongs to each file.

Below list shows the total number of occurances of the  Green Deficiency rule "Avoid String concatenation in  loops" which is 21 in 9 files. It do not show the number of  occurances in each of the listed file.2.png

 

 

In the excel report also it is showing only the file name, but not showing how many occurrences belong to each file.

 

 

Workaround

To know the number of occurrences against each file.

  1. Run the CLI Highlight analysis with this option: 

    --dbgMatchPatternDetail
  2. Check the following file in the analysis folder of the working directory. 
    greendetail_<technology>.csv

     Or  

  1. Download & Install the Green extension for VS Code (similar)
  2. Click on any one of the rules to get the number of occurances for each rule in each file in VS code.1.png

 

Related Pages

Green Impact score calculation

Green Deficiency Patterns

Green Effort estimate calculation

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

 

Ticket

44920

Have more questions? Submit a request

Comments

Powered by Zendesk