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.
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.
-
Run the CLI Highlight analysis with this option:
--dbgMatchPatternDetail
- Check the following file in the analysis folder of the working directory.
greendetail_<technology>.csv
Or
- Download & Install the Green extension for VS Code (similar)
-
Click on any one of the rules to get the number of occurances for each rule in each file in VS code.
Related Pages
Green Impact score calculation
Green Effort estimate calculation
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Ticket
44920
Comments