From 5642dbe0199885548017674b782fde6f78dfa4ce Mon Sep 17 00:00:00 2001 From: Jared Whiklo Date: Fri, 22 Feb 2019 15:03:33 -0600 Subject: [PATCH] Allow custom codesniffer ignore arguments (#716) --- tests/scripts/travis_scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/scripts/travis_scripts.sh b/tests/scripts/travis_scripts.sh index 85fa9294..286601f2 100755 --- a/tests/scripts/travis_scripts.sh +++ b/tests/scripts/travis_scripts.sh @@ -35,8 +35,11 @@ if [ "$(phpenv version-name)" != "5.3.3" ]; then else DRUPAL_SNIFFS="Drupal" fi + if [ -z "$CODESNIFFER_IGNORE" ]; then + CODESNIFFER_IGNORE="vendor,*.info,*.txt,*.md" + fi echo "PHP Codesniffer" - /usr/bin/phpcs --standard=$DRUPAL_SNIFFS --extensions="php,module,inc,install,test" --ignore="vendor,*.info,*.txt,*.md" $TRAVIS_BUILD_DIR + /usr/bin/phpcs --standard=$DRUPAL_SNIFFS --extensions="php,module,inc,install,test" --ignore="$CODESNIFFER_IGNORE" $TRAVIS_BUILD_DIR checkReturn $? else echo "Skipping PHP Codesniffer for PHP 5.3.3"