-
-
Notifications
You must be signed in to change notification settings - Fork 598
Code Style #821
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
Code Style #821
Conversation
I wouldn't actually remove the php_cs config, but make it as close as possible to the styleci config. This will allow users to run php-cs-fixer locally before committing/creating a PR and actually have the code style correctly applied. Styleci will catch the remaning issues and make sure PR's don't get merged with code style issues. |
I disagree with the sentiment of making contributors care about code style. StyleCI is there to automatically fix it for maintainers. |
@acrobat it's one way or another - PHP CS Fixer with it's config or relying on Style CI - having both is IMHO the worst solution.
And that's why I prefer having PHP CS Fixer in the repo, so code style can be fixed before merging PR, not after. |
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.
Can you also remove PHP CS Fixer's cache from .gitignore
?
Ping. |
Pong. What about the question above "ping"? |
I'm no longer able to edit this PR. |
And keeping the cache file ignored is fine. I don't think we should remove this, otherwise when someone does a git pull, they may accidentality commit the cache file. |
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.
they may accidentality commit the cache file
sounds like a cheap excuse for bearing lazy ;)
Ping @acrobat. :) |
Sorry I've lost track of this PR! Thanks @GrahamCampbell! |
@GrahamCampbell what should happen after the merge to fix the failing job https://github.styleci.io/analyses/YjOWdv? |
StyleCI sends over a PR to be merged. It looks like it was closed. |
Replaces #817.