-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: phpcbf and phpcs will now check against WP and WC standards (#…
…2749) * phpcbf and phpcs will now check against WP and WC standards * Update wp-coding-standards to 3.0+ * Update coding-standards/wpcs woocommerce/woocommerce-sniffs squizlabs/php_codesniffer wp-coding-standards/wpcs woocommerce/qit-cli dependencies * Update phpcodesniffer-composer-installer composer require -W --dev dealerdirect/phpcodesniffer-composer-installer
- Loading branch information
1 parent
9e93c9f
commit c776ec5
Showing
5 changed files
with
178 additions
and
174 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
# phpcbf returns exit-code as 1 even if all errors were fixed. | ||
# https://github.com/squizlabs/PHP_CodeSniffer/issues/3057#issuecomment-919794895 | ||
|
||
composer run phpcbf $@ | ||
|
||
status=$? | ||
|
||
[ $status -eq 1 ] && exit 0 || exit $status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.