Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Conversation

@svemir
Copy link
Contributor

@svemir svemir commented Nov 16, 2010

I needed to exclude a bunch of folders when running phpcpd, and specifying multiple --exclude args on the command line was bothering me. Also, several other tools I use in the same ant file (pdepend, phpmd, phpcs) already allow a list of comma-separated names to ignore. This way I can use an ant build property to manage the ignore list in one place. Even -suffixes arg. in phpcpd itself allows it. So, I added support for that, in a similar way it is done for --suffixes. It only happens if you provided one (and only one) --exclude.

… already do

(only does something if you provide a single --exclude arg, so you can still
provide multiple --exclude args if you do not mind your command line getting too long)
@Konafets
Copy link

Vote. Please add this feature.

@kiltec
Copy link

kiltec commented Mar 23, 2011

Yes, please add this feature, I've just come here to create a ticket asking for an exclude feature being the same as pmpmd, pdepend and phpcs - good to see someone already went ahead and implemented it.

Hopefully it will get included into the next release of phpcpd, it's an awesome tool, this change would make it even awesomer! :D

@DavidGoodwin
Copy link

+1

1 similar comment
@bastianonken
Copy link

+1

sebastianbergmann added a commit that referenced this pull request May 6, 2011
Allow specifying multiple directories for exclusion using a single --exclude argument.
@sebastianbergmann sebastianbergmann merged commit 5f5dca5 into sebastianbergmann:master May 6, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants