From 0e5f996c3c68727d21824ff25bf80ebcbeb04477 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 8 Sep 2020 12:16:59 -0500 Subject: [PATCH] look at folders and not file names --- lib/worker.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/worker.sh b/lib/worker.sh index d32bdc0b..75f1af6a 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -160,19 +160,19 @@ function LintCodebase() { ###################################################### # Make sure we don't lint node modules or test cases # ###################################################### - if [[ ${FILE} == *"node_modules"* ]]; then + if [[ ${DIR_NAME} == *"node_modules"* ]]; then # This is a node modules file continue - elif [[ ${FILE} == *"${TEST_CASE_FOLDER}"* ]]; then + elif [[ ${DIR_NAME} == *"${TEST_CASE_FOLDER}"* ]]; then # This is the test cases, we should always skip continue - elif [[ ${FILE} == *".git"* ]] && [[ ${FILE} != *".github"* ]]; then + elif [[ ${DIR_NAME} == *".git"* ]] && [[ ${DIR_NAME} != *".github"* ]]; then # This is likely the .git folder and shouldn't be parsed continue - elif [[ ${FILE} == *".venv"* ]]; then + elif [[ ${DIR_NAME} == *".venv"* ]]; then # This is likely the python virtual environment folder and shouldn't be parsed continue - elif [[ ${FILE} == *".rbenv"* ]]; then + elif [[ ${DIR_NAME} == *".rbenv"* ]]; then # This is likely the ruby environment folder and shouldn't be parsed continue elif [[ ${FILE_TYPE} == "BASH" ]] && ! IsValidShellScript "${FILE}"; then