-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add github action for coding style check #677
Conversation
Resolves #676 by adding cs-php action
You have to use the |
You mean as new base branch? So php-cs-fixer branch replaces the master branch? |
I meant like this (locally):
But it won't matter any more because I'll merge #652 in a few minutes. Then you just have to merge the new |
Now it's working. You can now try to add annotations. |
Use package to create github annotations with PHP-CS fixer.
Cs2pr throws an error, which I cannot reproduce. I'm on it, trying to fix this problem. |
When you use the composer command you have to do it like this: - composer fix -vvv --dry-run --format=checkstyle | cs2pr
+ composer fix -- -vvv --dry-run --format=checkstyle | cs2pr Otherwise the arguments will not be forwarded to the CS Fixer command. |
This reverts commit d896c16.
Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works, nice 👍
You can put adding this action to all the modules on your agenda. When the action is added, all CS issues in the module can be resolved, too. But as I said, you don't have to do this right now so you can work on some more interesting things in the meantime.
Resolves #676 by adding cs-php action.