-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix WooCommerce hook comment phpcs errors in misc files #10126
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.36 MB ℹ️ View Unchanged
|
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.
Tested well. After removing WooCommerce.Commenting
excludes from phpcs.xml.dist
, running npm run lint:php
on base branch gives me bunch of errors on those files but no error when run on PR branch.
I notice includes/admin/class-wc-rest-payments-settings-controller.php
is mentioned in the issue and PR but no change on that file so I assume that file was good all along.
@SInCE tag version numbers were calculated by viewing the PR that added the hook and looking at the WooPayments versions that included it
That must have quite tedious. Great work.
Honestly, I don't check whether the value of @SInCE is correct. I trust you did it correctly and it's low impact if the value is incorrect.
Yes, I see that PR #9329 removed the hooks that were violating comment phpcs rules after the initial audit was conducted. I've noted this in the PR description. |
Fixes #8549
Changes proposed in this Pull Request
This PR fixes
WooCommerce.Commenting
errors from the following miscellaneous files:tests/unit/admin/test-class-wc-payments-admin-sections-overwrite.php
includes/admin/class-wc-rest-payments-settings-controller.php
– no changes were required here, hooks were removed in Temporarily disables custom field detection notices #9329includes/admin/class-wc-payments-admin.php
templates/emails/plain/customer-ipp-receipt.php
templates/emails/customer-ipp-receipt.php
Notes
@since
tag version numbers were calculated by viewing the PR that added the hook and looking at the WooPayments versions that included itphpcs:ignore
WooCommerce.Commenting
ignore declaration fromphpcs.xml.dist
– this should be done once all errors have been fixed in Fix WooCommerce hook comment phpcs reports #8437.Testing instructions
Remove all the
WooCommerce.Commenting
excludes fromphpcs.xml.dist
Run
npm run lint:php
for the files listed above:Ensure there are no errors
Inspect the hook descriptions added are accurate
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge