From c9c782e5f8aecd3f79c4e206d333821cceebcdd9 Mon Sep 17 00:00:00 2001 From: ivangrynenko Date: Thu, 21 Feb 2019 11:22:09 +1100 Subject: [PATCH] Added exclude for node_modules folder inside the custom themes. Without this line, node_modules directory gets linted and produced large number of warnings. --- .docker/scripts/lint-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/scripts/lint-theme b/.docker/scripts/lint-theme index 481fed80c..a45527f0e 100644 --- a/.docker/scripts/lint-theme +++ b/.docker/scripts/lint-theme @@ -5,7 +5,7 @@ APP_DIR=${APP_DIR:-/app} PROFILE_DIR=${PROFILE_DIR:-${APP_DIR}/web} # Lint code. -${APP_DIR}/tests/vendor/bin/parallel-lint --exclude /app/tests/vendor -e php,inc,module,theme,install,profile,test ${PROFILE_DIR}/themes/custom +${APP_DIR}/tests/vendor/bin/parallel-lint --exclude /app/tests/vendor --exclude ${PROFILE_DIR}/themes/custom/*/node_modules -e php,inc,module,theme,install,profile,test ${PROFILE_DIR}/themes/custom # Check code standards. ${APP_DIR}/tests/vendor/bin/phpcs --standard=${APP_DIR}/tests/phpcs.xml ${PROFILE_DIR}/themes/custom