- Notifications
You must be signed in to change notification settings - Fork 23
Modernization #35
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
Modernization #35
Conversation
- Use PSR-12 - Move to WPCS 2 - Move to PHPCS 3.3 - Include VIP rules
As should already be there frm WPCS
| Note how with PSR-12 many of the files headers on our codebase can break because PSR-12 does not allow |
...which is indeed very nice as it makes the code readable: 1 thing per line |
| A ruleset naturally has a lot of xml-s - from the previous millennia - please make sure these are checked. For example see https://github.com/szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset/blob/master/tests/xmllint.sh |
Readability is subjective, having a line for 5 characters The problem is that is a big backward compat issue for us (as in Inpsyde) because to follow this rule we will have to change almost 100% of our PHP files. |
| @gmazzap How about making a |
@dnaber-de If this becomes the 0.15 we can adapt composer.json as well, from That said, I am fine this becomes 1.0.0 but I would make it "golden" without any usage in the real world. So maybe we can start with Another alternative is that we change the PSR-12 rule to accept I could do that. I already edited |
| I don't give version numbers any meaning beside that defined in semantic versioning. So if we plan a proper public testing phase including a time plan for reviews and comments then a beta version is a a good choice. But if not, we should just go with |
dnaber-de left a comment
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 fixed the small bug in FixtureContentParser which results in all tests pass now. I did not dig into any detail but as you said standards are not there to like or dislike they just exist to follow them. Thanks for your effort on moving this forward.
| I've read the commits, open issues and tested this branch on several repositories and found it to be behaving as expected without any issues. |
This brach if merged will:
Modernize the codebase:
Cleanup:
PHPCSAliases.phpthat's no more necessaryargandconfigfromruleset.xmlImprove:
Overall, merging this PR will fix:
So basically all open issues.
Before merging this has to be tested in the real world, that is, the updated repo as to be used to check a few WP codebases.
When merged we can release v0.15 which could be the 1.0-beta.