Disabling languages

To disable specific languages, include the -disable-language option in the translation phase, which specifies a list of languages that you want to exclude. The valid language values are

abap, actionscript, apex, cfml, cobol, configuration, cpp, dart, dotnet, golang, objc, php, python, ruby, swift, and vb.

For example, to perform a translation that excludes configuration and PHP files, use the following command:

sourceanalyzer -b MyProject <src_files> -disable-language configuration:php

You can also disable languages by setting the com.fortify.sca.DISabledLanguages property in the OpenText SAST properties file <sast_install_dir>/Core/config/fortify-sca.properties. For example, to achieve the equivalent of the previous translation command, set the following in the properties file:

com.fortify.sca.DISabledLanguages=configuration:php

For languages that are not available with the -disable-language, use the -exclude option. For more information, see Translation options.