Open m2-assistant[bot] opened 11 months ago
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @fredden,
Thanks for the report and collaboration!
We have tried to reproduce the issue in the Magento 2.4-develop instance and it seems the issue reproducible for us. Please have a look our findings on this issue:
While running vendor/bin/phpcs
command, it shows the below error:
In case running for specific file vendor/bin/phpcs app/bootstrap.php
, it shows the below warnings and errors:
And if we pass with --standard=Magento2Framework
with the command vendor/bin/phpcs --standard=Magento2Framework app/bootstrap.php
, it is not showing any error, that means while not passing any standard, it is not using Magento2Framework
as a standard:
Hence confirming the issue.
Thanks
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9842 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
This issue is automatically created based on existing pull request: magento/magento2#38115: Set default PHP_CodeSniffer configuration
Description
When running
vendor/bin/phpcs
(orvendor/bin/phpcbf
) without any arguments, and error is shown. When runningvendor/bin/phpcs
on 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 theMagento2Framework
standard.See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file
Manual testing scenarios
vendor/bin/phpcs
without any arguments.vendor/bin/phpcs app/bootstrap.php
vendor/bin/phpcs --standard=Magento2Framework app/bootstrap.php
Contribution checklist