Exit Codes
The following table describes the possible Fortify Static Code Analyzer exit codes.
| Exit Code | Description |
|---|---|
| 0 | Success |
| 1 | Generic failure |
| 2 |
Invalid input files (this could indicate that an attempt was made to translate a file that has a file extension that Fortify Static Code Analyzer does not support) |
| 3 | Process timed out |
| 4 | Analysis completed with numbered warning messages written to the console and/or to the log file |
| 5 | Analysis completed with numbered error messages written to the console and/or to the log file |
| 6 | Scan phase was unable to generate issue results |
| 7 | Unable to detect a valid license or the LIM license expired at run time |
By default, Fortify Static Code Analyzer only returns exit codes 0, 1, 2, 3, or 7.
You can extend the default exit code options by setting the com.fortify.sca.ExitCodeLevel property in the <sca_install_dir>/Core/Config/fortify-sca.properties file.
The valid values are:
nothing—Returns any of the default exit codes (0, 1, 2, 3, or 7).warnings—Returns exit codes 4 and 5 in addition to the default exit codes.errors—Returns exit code 5 in addition to the default exit codes.no_output_file—Returns exit code 6 in addition to the default exit codes.