I am trying to use the --exclude command line option, but unless I am "hardcoding" a full explicit path to a folder or to a file, the FileFinder() API does not exclude the stuff I want it to.
I am using CPD for C code analysis and I do not have Ant or similar stuff. Just CPD on its own. It would be really useful if I would be able to filter out all the "test" sub-folders, or all the *.cpp files I want using either regular expressions as others suggested in another thread here: https://sourceforge.net/p/pmd/patches/272/ or using wildcards similar to the ones which are accepted by Jenkins or Eclipse file filters like it is documented here: https://github.com/Mach-II/Mach-II-Framework/wiki/ANT-Style-Pattern-Matcher
Do you think it would be possible to add this feature?
Thank you in advance for your kind response.
Best regards,
Tamas
_
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to use the --exclude command line option, but unless I am "hardcoding" a full explicit path to a folder or to a file, the FileFinder() API does not exclude the stuff I want it to.
I am using CPD for C code analysis and I do not have Ant or similar stuff. Just CPD on its own. It would be really useful if I would be able to filter out all the "test" sub-folders, or all the *.cpp files I want using either regular expressions as others suggested in another thread here: https://sourceforge.net/p/pmd/patches/272/ or using wildcards similar to the ones which are accepted by Jenkins or Eclipse file filters like it is documented here: https://github.com/Mach-II/Mach-II-Framework/wiki/ANT-Style-Pattern-Matcher
Do you think it would be possible to add this feature?
Thank you in advance for your kind response.
Best regards,
Tamas
_
That's a good idea. I've created a ticket to track your feature-request: [#1229]
Related
Issues: #1229