Skip to content

Commit

Permalink
Tests: Exclude some paths from PHPCS checks
Browse files Browse the repository at this point in the history
We don't need to check things like the entire vendor folder and compiled assets so let's skip them in PHPCS.
  • Loading branch information
philipjohn committed Oct 16, 2018
1 parent 06bd775 commit 8de33ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ script:
# -n flag: Do not print warnings. (shortcut for --warning-severity=0)
# --standard: Use WordPress as the standard.
# --extensions: Only sniff PHP files.
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/bin/phpcs -p -s -v -n . --standard="WordPress-VIP-Go"; fi
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/bin/phpcs -p -s -v -n . --standard="WordPress-VIP-Go" --ignore=assets/*,vendor/*,bin/*,node_modules/*; fi
# Run unit tests
- phpunit
# Run linting
Expand Down

0 comments on commit 8de33ec

Please sign in to comment.