From 8de33ec33c6c096c5f5f50f4152f2774422411d2 Mon Sep 17 00:00:00 2001 From: Philip John Date: Tue, 16 Oct 2018 17:27:24 +0100 Subject: [PATCH] Tests: Exclude some paths from PHPCS checks We don't need to check things like the entire vendor folder and compiled assets so let's skip them in PHPCS. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6b95011cc..d52fa002f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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