Menu

CPD --exclude command line option

2014-07-24
2014-07-26
  • Tamas Kleiber

    Tamas Kleiber - 2014-07-24

    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

    _

     
  • Andreas Dangel

    Andreas Dangel - 2014-07-26

    That's a good idea. I've created a ticket to track your feature-request: [#1229]

     

    Related

    Issues: #1229


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.