-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Incremental check for coding standards in pull requests #2917
Comments
Just one small comment, the checker should use the |
@lcobucci this will be possible after I release a new version built with
The standard and the rest of parameters will be taken from |
@morozov, I won't have time for few weeks but just to tell it will be super useful to me. |
@belgattitude I think we all need some rest :) |
Here's how developers can validate their code before pushing on github: https://asciinema.org/a/151458. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The existing approach of running
phpcs
over the entire codebase on pull requests is not really helpful because:protected
methods/properties starting with an underscore).Incremental checks could be done using morozov/diff-sniffer-pull-request like following:
On Travis CI, it could be a conditional build job which is only executed for pull requests. Some pull requests will inevitably fail (e.g. if they override a method starting with an underscore). Even in this case, I'd prefer to not allow this stage to fail since a pull request with a failed build still can be merged.
Anyone volunteers to implement?
The text was updated successfully, but these errors were encountered: