PHPCS: Move the recommended command line arguments into the custom ruleset.
This commit is contained in:
parent
0d353e1c0c
commit
b78d053772
2 changed files with 15 additions and 6 deletions
|
@ -79,14 +79,9 @@ script:
|
|||
# WordPress Coding Standards.
|
||||
# @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
|
||||
# @link http://pear.php.net/package/PHP_CodeSniffer/
|
||||
# -p flag: Show progress of the run.
|
||||
# -s flag: Show sniff codes in all reports.
|
||||
# -v flag: Print verbose output.
|
||||
# -n flag: Do not print warnings. (shortcut for --warning-severity=0)
|
||||
# Uses a custom ruleset based on WordPress. This ruleset is automatically
|
||||
# picked up by PHPCS as it's named `phpcs.xml(.dist)`.
|
||||
# --extensions: Only sniff PHP files.
|
||||
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs -p -s -v -n . --extensions=php; fi
|
||||
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs; fi
|
||||
|
||||
# Receive notifications for build results.
|
||||
# @link http://docs.travis-ci.com/user/notifications/#Email-notifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue