Fortify SCA exclude test folder\files

user42266 picture user42266 · Jun 12, 2014 · Viewed 10.7k times · Source

How can I exclude test directories in a Java Project from being scanned by Fortify sca. The directories are structured in the following way -

/src/main/xyz/pqr
/src/main/xyz/test/abc
/src/test/xyz

I want to exclude any files under folders named test from being scanned. I am not sure how to use the -exclude command line parameter to achieve this.

Answer

igorepst picture igorepst · Jan 24, 2016

Use the following:

-exclude "**/test/*"