Skip to content

Commit

Permalink
[PT-1550] Add config plugin for sniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-pugach-mondu committed Jun 24, 2024
1 parent a24ddcd commit c22295c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
php-version: '8.1'
tools: composer

- name: Configure Composer allow-plugins
run: composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true

- name: Install dependencies
run: composer install

Expand All @@ -28,7 +31,7 @@ jobs:
composer require phpmd/phpmd
- name: Run PHP Mess Detector
run: vendor/bin/phpmd . text cleancode,codesize,controversial,design,naming,unusedcode
run: vendor/bin/phpmd . text cleancode,codesize,controversial,design,naming,unusedcode --exclude vendor

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

0 comments on commit c22295c

Please sign in to comment.