Skip to content
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

Get closer to @PhpCsFixer standard ruleset #865

Merged
merged 97 commits into from
Feb 10, 2020
Merged

Get closer to @PhpCsFixer standard ruleset #865

merged 97 commits into from
Feb 10, 2020

Conversation

ob-stripe
Copy link
Contributor

r? @richardm-stripe @cjavilla-stripe
cc @stripe/api-libraries

This PR enables a lot PHP-CS-Fixer rules. The goal is to get as close as possible to the @PhpCsFixer standard ruleset, which enforces fairly opinionated style rules.

There are still a few rules that are not enabled, or are enabled with a custom configuration, because they cause too many changes in codegen'd files and I'd rather we generate compliant code in the first place instead of relying too heavily on PHP-CS-Fixer to reformat everything.

Once all those issues are fixed, we should be able to remove the long list of rules from .php_cs.dist and just enable the @PhpCsFixer ruleset instead.

I recommend reviewing the PR commit by commit. There are lot of commits, but most of them simply add a rule to .php_cs.dist and don't do anything else because we were already compliant with that rule.

@ob-stripe ob-stripe merged commit 9bb7ec1 into master Feb 10, 2020
@ob-stripe ob-stripe deleted the ob-more-phpcs branch February 10, 2020 20:55
@ob-stripe
Copy link
Contributor Author

Released as 7.24.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants