From b78d0537728d9d1cd693a4826c1229c8fec7d8f0 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 12 Jun 2017 00:21:34 +0200 Subject: [PATCH] PHPCS: Move the recommended command line arguments into the custom ruleset. --- .travis.yml | 7 +------ phpcs.xml.dist | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index c23feb07..03201ffc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 2d06727b..6bf620da 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -6,6 +6,20 @@ A custom set of code standard rules to check for WordPress themes. + + + + + + + + . +