Wikis - Page

Knowledge Doc: [Fortify Static Code Analyzer] How to modify the number of lines displayed for code snippets in reports

0 Likes

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

Knowledge Base Article Link


URL Name
KM000017564

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended