-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
15 php cs fixer issues #16
Conversation
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in(__DIR__); | ||
|
||
$fixers = array( |
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.
Sorry I haven't checked myself yet, but does this custom list cover PSR2? I just would like Yasumi to be PSR2 compliant. Any additional ones are fine to me, but not mandatory.
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.
Reviewed the PR and looking good! Mostly it is formatting/style corrections. However seems these are not necessarily PSR2 corrections, but nonetheless good. Let me merge it this weekend, as I want to check a few little things more
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.
I guess its a starting point, having the config in place means this can eventually be formalized, and the php-cs-fixer
checks can be added to travis once that is done.
There are a lot of formatting changes in this PR - I didn't even manage to review them all.
I've just been looking over the PSRs, and Fixers defined for them and this config still includes a lot of symfony cs fixers. I might revert the previous commit and re-run php-cs-fixer with only the PSR based fixers.
@stelgenhof I think I'm happy with this now :) To summarize the changes in this PR
|
Also, a note about the tests directory and namespaces, it appears to be part of PSR4
Which is a requirement of PSR2 as far as I understand it |
I think the contiguous sub-namespace requirements was the culprit I believe. Let me check once more and merge your PR |
Would you mind changing the "tests" folder back to uppercase? I prefer the sub-namespaces to be consistent. If not, I can do it after merging the PR :) As for |
@stelgenhof would you want to change the actual directory from Regarding the dry-run, it means it wont be changing the files just determining if any files do not meet the cs requirements. The output looks more like phpunit:
If any files do not pass, the build fails |
Ah indeed. Then I would leave it as you did. No need to change. I will merge it |
Alright, go ahead. I'll need to update my other pull request to meet the new CS requirements :) |
#15 Adding php-cs-fixer config, and changes from running said config