Set default PHP_CodeSniffer configuration#38115
Set default PHP_CodeSniffer configuration#38115fredden wants to merge 10 commits intomagento:2.4-developfrom
Conversation
|
Hi @fredden. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
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 |
|
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. |
|
Hello @fredden, Thanks for the collaboration & contribution! ✔️ QA PassedSteps to reproduce:
Before: ✖️Both commends gave different outputs. After: ✔️Both commends gave same outputs. Thank you. |
|
@magento run all tests |
|
Since builds are failed moving this to Extended testing. |
|
@magento run Functional Tests B2B, Functional Tests EE |
|
Moving it back to ET to analyze the build result, as the build URL was not attached in the #38115 (comment) about flaky tests |
|
@magento run all tests |
|
@magento run all tests |
|
@magento run Unit Tests, Functional Tests EE, Functional Tests CE, Functional Tests B2B |
|
@magento run all tests |
|
@magento run all tests |














Description
When running
vendor/bin/phpcs(orvendor/bin/phpcbf) without any arguments, and error is shown. When runningvendor/bin/phpcson a specific file, the "wrong" standard is applied. This pull request sets the "correct" defaults for PHP_CodeSniffer so that both of these scenarios work as expected - ie, that they scan the expected files with theMagento2Frameworkstandard.See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file
Manual testing scenarios
vendor/bin/phpcswithout any arguments.vendor/bin/phpcs app/bootstrap.phpvendor/bin/phpcs --standard=Magento2Framework app/bootstrap.phpContribution checklist
Resolved issues: