Cybersecurity
DevOps Cloud
IT Operations Cloud
Summary
How to modify the number of lines of code displayed in a Legacy Report(PDF/XML).
Products
Fortify Static Code Analyzer
Environment
Static Code Analyzer (SCA)
Situation
The default number of lines of code displayed in the code snippet in a Legacy Report (PDF/XML) is 5 lines. It may become necessary to increase the number of lines of code displayed.
Resolution
To increase the number of lines of code to display, the com.fortify.sca.SnippetContextLine parameter needs to be set in the following files:
<SCA Install Directory>\Core\config\fortify-sca.properties
<SCA Install Directory>\Core\config\fortify.properties
Please add a line similar to the following in the above two files where the number value is the number of lines before and after the line of code where the error occurs:
com.fortify.sca.SnippetContextLines=8
URL Name
KM000017564