Simplify phpcs config

This commit is contained in:
Alex P 2021-08-19 10:12:15 +03:00
parent 44aecb698e
commit 2b344f51f8
3 changed files with 6 additions and 3 deletions

View file

@ -32,4 +32,4 @@ jobs:
- name: Run test suite
run: ./vendor/bin/phpunit
- name: Run Woocommerce coding standards
run: ./vendor/bin/phpcs src modules woocommerce-paypal-payments.php --extensions=php
run: ./vendor/bin/phpcs

View file

@ -22,7 +22,7 @@ Note: PHPUnit needs at least PHP 7.3.
1. `$ composer install`
2. `$ ./vendor/bin/phpunit`
3. `$ ./vendor/bin/phpcs src modules woocommerce-paypal-payments.php --extensions=php`
3. `$ ./vendor/bin/phpcs`
## Preparation for wordpress.org release

View file

@ -20,9 +20,12 @@
</rule>
<arg name="extensions" value="php"/>
<file>.</file>
<file>./src</file>
<file>./modules</file>
<file>./woocommerce-paypal-payments.php</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>./tests/*</exclude-pattern>
<exclude-pattern>*/resources/*</exclude-pattern>
</ruleset>