ignore testing of vendor files

This commit is contained in:
Sam 2018-01-27 17:38:17 -06:00
parent 4d2a98585a
commit 1a446d5f42
3 changed files with 13 additions and 4 deletions

View File

@ -2,6 +2,11 @@
"preset": "wordpress",
"fileExtensions": [ ".js" ],
"excludeFiles": [
"js/**.min.js"
"js/**.min.js",
"js/**.min.js",
"src/**/*.js",
"js/core.js",
"js/popper.js",
"js/theme.js"
]
}

View File

@ -1 +1,5 @@
js/**.min.js
src/**/*.js
js/core.js
js/popper.js
js/theme.js

View File

@ -93,4 +93,4 @@ script:
# -n flag: Do not print warnings (shortcut for --warning-severity=0)
# --standard: Use WordPress as the standard.
# --extensions: Only sniff PHP files.
- $WP_DEVELOP_DIR/php-codesniffer/scripts/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php
- $WP_DEVELOP_DIR/php-codesniffer/scripts/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php --ignore=*/woocommerce/*,*/src/*