-
Notifications
You must be signed in to change notification settings - Fork 61
Support option that only checks the php files that you changed #75
Comments
Hello, how you can detect changed files? Thanks |
We could use git, see how Wikimedia do it https://github.com/wikimedia/integration-config/blob/master/jjb/macro.yaml#L541 and https://github.com/wikimedia/integration-jenkins/blob/master/bin/git-changed-in-head#L42 please. We need to do that for mediawiki due to the amout of files. |
Yes, it is good idea. But.. what if project don't use git? It is next dependency (for that option). So - is not a solution use |
Well we could support a new option and call it like -h probably, and write in the README that this option requires git. So we doint need to add dependency on anything but just put a not a read me file explaning that you need to to run -h. Also exclude, excludes the files from linting which is not what we want. |
So ok.. can you send PR? I can help you with code-review and I can help with design changes ;-) |
Oh, but I'm not sure how to do this. |
Start point for you will be: 1/ configuration for options - https://github.com/JakubOnderka/PHP-Parallel-Lint/blob/master/src/Settings.php#L125 It is better now? |
Yep, thanks. I will see if I can do it now :) |
I don't think this tool should do this, but it's the job of the task runner. See #58. |
You could use grumphp to achieve this |
This option is already supported ? git diff origin/master --name-only -- '*.php' | parallel-lint --stdin Will use git as your VCS to tell parallel-lint which files to look for Example
|
Hi please could you support only checking the php files you changed in an option please?
The text was updated successfully, but these errors were encountered: