mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Simplify phpcs config
This commit is contained in:
parent
44aecb698e
commit
2b344f51f8
3 changed files with 6 additions and 3 deletions
2
.github/workflows/php.yml
vendored
2
.github/workflows/php.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue