-
Notifications
You must be signed in to change notification settings - Fork 152
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
Using phpro/grumphp for local quality check #90
Comments
From @mzeis on February 9, 2019 9:25 I can confirm that GrumPHP also helped us with getting better commits. Especially it's motivating because it shortens the feedback loop (you don't need to wait for a failing build to get feedback) and helps to not forgetting basic checks.
I didn't use
It might be a good test project for Magento to find out if it's suitable for other repos too. |
@lenaorobei can you review this we should add this to architecture meeting on Wednesday. |
From @lenaorobei on February 11, 2019 17:9 @larsroettig sure, adding to the meeting notes. |
From @orlangur on February 13, 2019 16:13 @larsroettig nice initiative, it was a suggested replacement for abandoned composer package used to implement git hook previously :) I would revisit config a lot thought, |
@orlangur ForbiddenFunctions we can add this and remove |
From @lenaorobei on February 13, 2019 17:28 @larsroettig as per architects discussion this issue looks like more global question than just the coding standard. Could you please move this proposal to magento/architecture repository? |
Thank you for the proposal @larsroettig . "We using this tool for more than one year in our projects. We getting better commits and lower rejection rate of Pull Requests" - are PRs being rejected by EngCom team? Does it happen before you get feedback from CI? These checks run by CI after you push changes. Do you need to manually add pre-commit hook? Not sure many developers would do that. We also would have to maintain this config. I don't have strong opinion. I suggest to ask in appdesign slack channel and proceed with it if there is enough interest. |
@melnikovi this tool supports multiple use cases, local hooks are just to get quicker response and to maintain quality we can add https://github.com/phpro/grumphp/blob/master/doc/commands.md#run on Travis CI. |
PHP is required on host (or wherever a dev makes commit from). |
Let's also run it through developers when a branch with exact rules is ready. |
I'd also suggest to add an explicit criteria of "not more than X sec to run" to make sure it doesn't annoy developers. 5s can be a good number or validate with the volunteers. |
@buskamuza sure, will do that. My only one concern is the installation. As I see once we run |
Please continue any discussion in #92 |
From @larsroettig on February 7, 2019 15:21
We should add as grumphp for checking the quality of commits.
Sample Config:
We using this tool for more than one year in our projects. We getting better commits and lower rejection rate of Pull Requests.
Info:
https://www.integer-net.com/magento-2-automatic-code-quality-check-with-grumphp/
To discuss:
Copied from original issue: magento/magento-coding-standard#35
The text was updated successfully, but these errors were encountered: