- Notifications
You must be signed in to change notification settings - Fork 9.4k
[PHPMD] Add phpmd rule with ignoring of unused required parameters in the plugins #33918
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
[PHPMD] Add phpmd rule with ignoring of unused required parameters in the plugins #33918
Conversation
… the plugins Signed-off-by: Denis Kopylov <dkopylov@magenius.team>
Hi @Den4ik. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Signed-off-by: Denis Kopylov <dkopylov@magenius.team>
@magento run all test |
Failed to run the builds. Please try to re-run them later. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run WebAPI Tests, Integration Tests, Database Compare, Functional Tests B2B, Functional Tests CE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Database Compare |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Database Compare |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
dev/tests/static/framework/Magento/CodeMessDetector/Rule/UnusedCode/UnusedFormalParameter.php Outdated Show resolved Hide resolved
…with-plugin-ignore
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
…with-plugin-ignore
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
…with-plugin-ignore
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run Unit Tests ,Functional Tests CE,Functional Tests EE,Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento create issue |
✔️ QA PassedManual testing scenario:
Builds are failed. Hence, moving this PR to Extended Testing. |
@magento run Unit Tests,Functional Tests CE,Functional Tests EE,Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run Unit Tests,Functional Tests EE,Functional Tests CE ,Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
Description (*)
This PR improve phpmd
UnusedFormalParameter
rule with ignoring of required unused parameters in the plugins.around
andafter
plugins has 2 required params$subject
and$proceed
(or$result
forafter
plugin).before
plugin has 1 required param$subject
.This PR override standard
UnusedFormalParameter
rule and allow don't use@SuppressWarnings(PHPMD.UnusedFormalParameter)
in the plugins.Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
@SuppressWarnings(PHPMD.UnusedFormalParameter)
from some pluginPluginInterface
implementation into the classUnusedFormalParameter
errorsQuestions or comments
Contribution checklist (*)
Resolved issues: