static-checks.bat 1.2 KB

12345678910111213141516171819
  1. :: Copyright © Magento, Inc. All rights reserved.
  2. :: See COPYING.txt for license details.
  3. :: REMEMBER TO UPDATE THE BASH FILE
  4. @echo off
  5. @echo ===============================PHP CODE SNIFFER REPORT===============================
  6. call vendor\bin\phpcs --standard=.\dev\tests\static\Magento --ignore=src/Magento/FunctionalTestingFramework/Group,src/Magento/FunctionalTestingFramework/AcceptanceTester.php .\src
  7. call vendor\bin\phpcs --standard=.\dev\tests\static\Magento .\dev\tests\unit
  8. call vendor\bin\phpcs --standard=.\dev\tests\static\Magento --ignore=dev/tests/verification/_generated .\dev\tests\verification
  9. @echo ===============================COPY PASTE DETECTOR REPORT===============================
  10. call vendor\bin\phpcpd .\src
  11. @echo ===============================PHP MESS DETECTOR REPORT===============================
  12. call vendor\bin\phpmd --exclude _generated,src\Magento\FunctionalTestingFramework\Group,src\Magento\FunctionalTestingFramework\AcceptanceTester.php .\src text \dev\tests\static\Magento\CodeMessDetector\ruleset.xml
  13. @echo ===============================MAGENTO COPYRIGHT REPORT===============================
  14. call bin\copyright-check.bat