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

PHPCBF Everything #753

Closed
wants to merge 3 commits into from
Closed

PHPCBF Everything #753

wants to merge 3 commits into from

Conversation

kraftbj
Copy link
Contributor

@kraftbj kraftbj commented Feb 1, 2021

Adding the rules proposed in #752, here is what PHPCBF could automatically fix.

@kraftbj
Copy link
Contributor Author

kraftbj commented Feb 2, 2021

(I don't expect this to merge. I figure get the rewrite figured out and landed first, but opening this just to have something to look at)

Base automatically changed from add/lint-rules to master February 2, 2021 08:32
@donnchawp
Copy link
Contributor

Nice. I should have run this years ago ...

@lkraav
Copy link

lkraav commented Feb 2, 2021

🚀

While y'all at this, it's worth it to also look into auto-linting pre-commit hook setup.

We do it like https://github.com/conversionxl/lint-staged-config/blob/ea0b9a4b3696abd67b40809ec77974ed4b5f8e32/index.js#L6-L28 for auto-running phpcbf, phpcs, psalm on all to-be-committed files locally.

@kraftbj kraftbj mentioned this pull request Feb 2, 2021
@kraftbj
Copy link
Contributor Author

kraftbj commented Feb 2, 2021

@lkraav I concur. This is what we use over in Jetpack that does PHPCS and eslint, with phpcs-changed to force changed lines to be compliant and we made our own variant of it to work with eslint for JS.

@kraftbj
Copy link
Contributor Author

kraftbj commented Feb 2, 2021

Going to close this to defer to #754. Merging this while there's a rewrite in another branch is just going to be asking for merge headaches later.

@kraftbj kraftbj closed this Feb 2, 2021
@kraftbj kraftbj deleted the phpcs/phpcbf branch February 2, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants