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. + + + + + + + + . +