Translation Options
The following table describes the translation options.
Translation Option | Description |
---|---|
|
Specifies a build ID. Fortify Static Code Analyzer uses a build ID to track the files that are compiled and combined as part of a build, and then later, to scan those files. Equivalent Property Name:
|
-disable-language <languages>
|
Specifies a colon-separated list of languages to exclude from the translation phase. The valid language values are Equivalent Property Name:
|
-enable-language <languages>
|
Specifies a colon-separated list of languages to translate. The valid language values are Equivalent Property Name:
|
|
Specifies the files to exclude from the translation. Files excluded from translation are also not scanned. Separate multiple file paths with semicolons (Windows) or colons (non-Windows). For example:
This example excludes all Java files in any Note: When you integrate the translation with most compilers or build tools, Fortify Static Code Analyzer translates all source files that the compiler or build tool processes even if this option specifies to exclude them. However, the Fortify Static Code Analyzer xcodebuild and MSBuild integrations do support the Equivalent Property Name: |
|
Specifies the source file encoding type. Fortify Static Code Analyzer enables you to scan a project that contains differently encoded source files. To work with a multi-encoded project, you must specify the Valid encoding names are from the Typically, if you do not specify the encoding type, Fortify Static Code Analyzer uses Equivalent Property Name: |
|
When specified before a compiler command line, Fortify Static Code Analyzer translates the source file but does not run the compiler. |
|
Specifies the file type for source files that have no file extension. The valid file type values are |
-project-root
|
Specifies the directory to store intermediate files generated in the translation and analysis phases. Fortify Static Code Analyzer makes extensive use of intermediate files located in this project root directory. In some cases, you can achieve better performance for analysis by making sure this directory is on local storage rather than on a network drive. Equivalent Property Name:
|