-
Notifications
You must be signed in to change notification settings - Fork 119
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
[Task] Codebase should pass linting checks #971
Comments
Internal discussion: p1690905319416299-slack-C3L7CFBRV |
@eddr since you are creating a WooCommerce extension, you can presumably depend on WooCommerce being present (or can test for it). WooCommerce includes its own copy of Action Scheduler, and it should therefore be possible to use that from your extension (or else you can use I acknowledge this comes with some trade-offs (ie, you may not be able to take advantage of the very latest functionality)—but it is probably the most practical path forward at present. |
Hi! Thank you very much! I am aware that the AS included in WC, yes |
Gotcha ... in that case, I don't have an easy workaround I can share. I've updated the issue title and description, though, to create a task for cleaning things up within the Action Scheduler codebase (on our end, it is not likely something we can prioritize straight away, however). |
Thanks I really think it's mostly a problem with the WC extension submitting system |
The "Plugin Check (PCP)" plugin detects the following issue in the "Plugin Repo" category: FILE:
This is a problem, especially with the latest plugin check developments:
Can this be addressed within this issue or should I create a new issue and open a PR? |
Though that is (or was originally) a vendor library, it's one where we've already made other changes—so I think updating it again should be fine.
I think it would be fine to create a PR and link back to this issue ... but, please don't write |
@barryhughes I've created dozens of PRs of manageable size: one PR per file. That should help you make forward progress on this issue without delay. There are still a few more files to go, and once those are done, I'll swing back around and investigate the PRs that had checks failures. |
Phew, all PRs have been submitted 😓 , and attention brought to the check failures caused by Composer issue. Hopefully these small PRs can be accepted quickly. 🤞 |
@barryhughes FYI after all PRs have been merged, I plan to run PHPCS across the entire codebase again, as well as organize some things a bit. |
@barryhughes #1214 is my final PHPCS PR. 🎉 |
Thanks so much, @crstauf. We should be in a much better spot now. Taking a moment to itemize some further (hopefully final) to-do items before we can close this:
|
Hmm, not sure how I missed the short array syntax fixes. That was the intent of my cleanup branch. 😡 |
Given the number of fixes, I think something was going to be missed 🙃 |
Improve coding standards across Action Scheduler. We should pass our own linting tests, and ideally those should intersect with the WPCS checks implemented by the WooCommerce Marketplace.
Additionally, as described in issues like this one, we should aim to get Action Scheduler's code to a point where it meets the expectations of the W.org plugin review team.
Original title:
Original description:
The text was updated successfully, but these errors were encountered: