-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Enhancement: Run PHP_CodeSniffer on Travis #6182
Conversation
👍 |
Seems like this much pain: |
@@ -41,7 +41,8 @@ | |||
"fabpot/php-cs-fixer": "dev-master#2f1df1d", |
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 we remove this? It's a damn pain every second upgrade :P
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.
👍
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.
Will do after I got up!
Two things:
|
Doesn't look like the script accepts a config file: https://github.com/squizlabs/PHP_CodeSniffer/blob/1.5.2/CodeSniffer.php#L2162-L2165 |
May will need to write an XML with the rules for the project. |
By the moment I've tagged this for next major release just because may add a lot of git conflicts with the PRs in the queue |
Rebased and updated to use an XML configuration file. Still failing, of course. |
Shouldn't we in the same run also remove the php-cs-fixer abuse as a checker? |
@DASPRiD yeap |
I've also removed the dependency on What do you think? From what I believe was agreed upon in PHP-FIG ages ago, it would be great to see component maintainers make an effort to get contributors to fix all of these issues. I'm willing to put in some work, too. How about a coordinated effort? |
Can you provide a list of rules that should be added to |
That is... quite a report :| but I like it a lot! |
Wondering how much it'd take to fix all those or if we should delay it for when 2.4 is released... |
@Ocramius I opened a PR #6454, but soon realized that PR would be over whelming to review. |
@chadicus I'll start merging those soon. |
Checked this out locally and rebased it:
So yeah: progress \o/ |
Also see localheinz#2, which includes parallelization of the CS fixes |
…cks-parallelization zendframework#6182 - running PHPCS checks in parallel
Fair enough. Thoughts, @localheinz? |
BTW, when releasing new version I made some regression on Symfony full stack framework and... ZF2 ;) |
To me it's not about the tool, but about the results, no? Whichever tool helps to
is a tool that gets the job done. |
Remove note about adding Git pre-commit hook. [skip ci]
Full report is too long for Travis.
63bb09d
to
7edb045
Compare
b4bf8f5
to
ccfd517
Compare
Not really related to silexphp/Silex#1079. |
Both can do that, and PHP CS Fixer is more mature than PHPCBF. |
Yay! |
No need to post same thing in both places: |
Taking an opinionated decision and closing as The reasons behind this change of direction are following:
@localheinz thanks for bringing up the issue though, as we really got very far by just working on this topic! It was really useful to flesh things out :-) That said, |
This PR
.travis.yml
to runphpcs
on Travisphpcs
fabpot/php-cs-fixer
README-GIT.md
in regard to suggested GITpre-commit
hook, usephpcs
instead ofphp-cs-fixer
Let's see how much pain this is going to cause.
/cc @Maks3w