CAST HIGHLIGHT - Results - Javascript - File count mismatch between Code scanner and Highlight portal

For Javascript, after analysis, the file count in the Highlight instance is found to be much higher than  the discovered file count in the code scanner/agent.

1.png

2.png

Details

This is because a javascript file can contain many separate javascript functions.

In the code scanner/agent view, it's shows a more macrscopic view of the count of files, but what is analyzed is actually the functions within the file so that each function can provide information on the metrics that are required for analysis by Highlight.

For example, the file scripts.js can have several functions:

scripts.js::allowed
scripts.js::user
scripts.js::departments
scripts.js::accounts

 

Ticket

42955

Related Articles

CAST HIGHLIGHT - Results - Javascript - File count mismatch between Code scanner and Highlight portal

CAST HIGHLIGHT - Results - Javascript - Application scan reports PHP code as JavaScript

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk