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
Update PHP CS Fixer #11718
Update PHP CS Fixer #11718
Conversation
WDYT? |
@PrestaShop/prestashop-core-developers Need everyone feedback :) |
I won't say no to additional checks, especially if they can be fixed by CS fixer. :) |
This new setting seems good to me, and thank you for all the other PRs where you cleaned all the code! |
Of course, this one should not pass the linter jobs until the other PRs are merged. :) |
Have you guys considered setting up StyleCI? It runs php-cs-fixer as a service. |
We are looking for tools, but haven't chosen yet. @eternoendless on its side heard about prettyci.com. |
Hm I think prettyci.com might actually be a better choice especially if they respect the .php_cs rather then require a separate format. |
Please merge this PR. |
Hi @MathiasReker, In order to go on this PR and approve your changes, I restarted the Travis build. Unfortunately it appears the linter jobs are currently failing. |
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.
Looks like some rules are missing:
- no_short_echo_tag
- no_alias_functions
- modernize_types_casting
- no_mixed_echo_print
If some rules are missing now, they are missing because they are already a symfony rule :-) |
Look like you include all @symfony:risky elements, as it says, it is risky :/ but use |
@PierreRambaud I am not sure I included all risky symfony rules, I picked them one by one. None of included risky rules seems to have any negative affect on on this project. Are you sure would use |
We have composer.lock which target a specific php-cs-fixer version. It is exactly the same as phpunit, Symfony and all dependencies. We control what we have, and so we should watch diff before updating dependencies. |
@PierreRambaud I updated the configuration. Wdyt?
|
WDYT? I am not sure how to solve Travis CI lint. |
New commits add more checks than were initially proposed. Can we roll them back and go with the initial suggestion? We can discuss adding others in another PR. |
@eternoendless I will do so. I am busy ATM. I will do it ASAP. |
I messed something up, trying to squash my commits. New PR: #12922 |
This change is