JavaScript and TypeScript Properties
The properties for the fortify-sca.properties file in the following table apply to the translation of JavaScript and TypeScript code.
| Property Name | Description |
|---|---|
com.fortify.sca.
|
If set to true, Fortify Static Code Analyzer generates JavaScript code to model the DOM tree that an HTML file generated during the translation phase and identifies DOM-related issues (such as cross-site scripting issues). Enable this property if the code you are translating includes HTML files that have embedded or referenced JavaScript code. Note: Enabling this property can increase the translation time. Value Type: Boolean Default: |
com.fortify.sca.
|
If you set the Value Type: String Default: Example:
|
|
|
Specifies trusted domain names where Fortify Static Code Analyzer can download referenced JavaScript files for the scan. Delimit the URLs with vertical bars. Value Type: String Default: (none) Example: |
com.fortify.sca.
|
If set to true, JavaScript code embedded in JSP, JSPX, PHP, and HTML files is not extracted and not scanned. Value Type: Boolean Default: |
|
|
If set to true, enables translation for minified JavaScript files. Value Type: Boolean Default: |
|
|
Specifies a list of comma- or colon-separated JavaScript or TypeScript technology library files that are not translated. You can use regular expressions in the file names. Note that the regular expression Value Type: String Defaults:
|
com.fortify.sca.
|
If set to true, files included with an import statement are included in the translation. Value Type: Boolean Default: |
com.fortify.sca.
|
If set to true, only imported node_modules are included in the translation. Value Type: Boolean Default: |
See Also