Excluded files marked are still being analyzed regardless

I have a project and have files that need to be excluded (see below)
**/testCode/,**/test/,**/unit/,**/*Test.java,**/*Impl.java,**/*Test.class,**/*Impl.class,**/*Suite.class,**/*Suite.java,**/*.xml

Trying to follow the exclusion rules:

  • Match zero or more characters
    ** Match zero or more directories
    ? Match a single character

I am not able to successfully exclude these files. They are still analyzed

Need some help or guidance on how to run exclusion properly as I am not able to get this to work.

Hi,

Can you provide your analysis log, as well as the property you’re passing this string to?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

analysis.log (4.2 KB)

Please see attached! Thanks for your time I appreciate it!

Hi,

Thanks, but that’s not the analysis log.

 
Ann

I see. Thanks for your response, I was able to figure this out. I appreciate your responses though!

1 Like