Skip to content

Commit

Permalink
[PT-1550] Install Code Sniffer and PHP Mess Detector
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-pugach-mondu committed Jun 24, 2024
1 parent 81d4ab0 commit a24ddcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
- name: Install dependencies
run: composer install

- name: Install Magento 2 Code Sniffer and PHP Mess Detector
run: |
composer require magento/magento-coding-standard
composer require phpmd/phpmd
- name: Run PHP Mess Detector
run: vendor/bin/phpmd . text cleancode,codesize,controversial,design,naming,unusedcode

- name: Run PHP CodeSniffer
run: vendor/bin/phpcs --standard=PSR12,Magento2 .

0 comments on commit a24ddcd

Please sign in to comment.