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.EnableDOMModeling |
If set to true, OpenText SAST 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. Enabling this property can increase the translation time. Value type: Boolean Default: |
com.fortify.sca.DOMModeling.tags |
If you set the Value type: String Default: Example: |
|
|
Specifies trusted domain names where OpenText SAST can download referenced JavaScript files for the scan. Delimit the URLs with vertical bars. Value type: String Default: (none) Example: |
com.fortify.sca.DisableJavascriptExtraction |
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.follow.imports |
If set to true, files included with an import statement are included in the translation. Value type: Boolean Default: |
com.fortify.sca.exclude.node.modules |
If set to true, files in a node_modules directory are excluded from the analysis phase. Value type: Boolean Default: |
com.fortify.sca.exclude.unimported.node.modules |
Specifies whether to exclude source code in a node_modules directory. If set to true, only imported node_modules are included in the translation. This property is only applied if Value type: Boolean Default: |