Managing issue detection in NPM dependencies

By default, OpenText SAST does not report issues in NPM dependencies (files in the node_modules directory). This is configured with the com.fortify.sca.exclude.node.modules property, which is set to true by default.

Setting the com.fortify.sca.exclude.node.modules property to false directs OpenText SAST to use the following options, which determines what results to report for NPM dependencies:

You can use the -exclude option together with the two properties listed previously to specifically exclude modules. Use of this option takes precedence over the previously described property configurations.

Note: OpenText does not recommend using the -exclude option to exclude node modules if com.fortify.sca.exclude.node.modules is set to true, because it can change the quality of the results.

See also

Examples of excluding NPM dependencies