Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filelist (to prevent a huge CLI --exclude) #909

Open
tebeso opened this issue Sep 4, 2021 · 2 comments
Open

Filelist (to prevent a huge CLI --exclude) #909

tebeso opened this issue Sep 4, 2021 · 2 comments

Comments

@tebeso
Copy link

tebeso commented Sep 4, 2021

Just like phpcs, it would be good if we could have an argument like --filelist blabla.txt or something. From phpcs documentation: "A file containing a list of files and/or directories to check (one per line)".

I have a project at the moment and i only need to scan one folder.. but to do that, i need a huge string of excludes for the CLI. A filelist would be better and more dynamic

@tvbeek
Copy link
Member

tvbeek commented Sep 7, 2021

Hello @tebeso,

Thanks for the idea, I think it can be useful to have it as an option.

But if I read your message correct you only need to use the folders in one directory, if that is correct you can give PHPMD that path. As example: phpmd your/directory text cleancode

Are you able to create a PR for this functionality?

@tebeso
Copy link
Author

tebeso commented Sep 7, 2021

hi @tvbeek

i actually have more than the folders in one directory and use the way you describe. The file-list would be cleaner however. The readability in our CI is quite bad if i have so long arguments and it would also be easier to do a copy and past for other projects. Another benefit would be, that devs dont have the rights to change the CI options and I need to do it for them all the time. With a file-list, they could do it on their own.

@ravage84 ravage84 added this to the 2.x (unspecific) milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants