mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 01:21:05 -05:00
Merge pull request #707 from ferrarimarco/fix-node-modules
Fix list files function typos
This commit is contained in:
commit
79b055babe
2 changed files with 9 additions and 9 deletions
|
@ -180,19 +180,19 @@ function LintCodebase() {
|
||||||
######################################################
|
######################################################
|
||||||
# Make sure we don't lint node modules or test cases #
|
# Make sure we don't lint node modules or test cases #
|
||||||
######################################################
|
######################################################
|
||||||
if [[ ${DIR_NAME} == *"node_modules"* ]]; then
|
if [[ ${FILE} == *"node_modules"* ]]; then
|
||||||
# This is a node modules file
|
# This is a node modules file
|
||||||
continue
|
continue
|
||||||
elif [[ ${DIR_NAME} == *"${TEST_CASE_FOLDER}"* ]]; then
|
elif [[ ${FILE} == *"${TEST_CASE_FOLDER}"* ]]; then
|
||||||
# This is the test cases, we should always skip
|
# This is the test cases, we should always skip
|
||||||
continue
|
continue
|
||||||
elif [[ ${DIR_NAME} == *".git" ]] || [[ ${FILE} == *".git" ]] || [[ ${FILE} == *".git/"* ]]; then
|
elif [[ ${FILE} == *".git" ]] || [[ ${FILE} == *".git/"* ]]; then
|
||||||
# This is likely the .git folder and shouldn't be parsed
|
# This is likely the .git folder and shouldn't be parsed
|
||||||
continue
|
continue
|
||||||
elif [[ ${DIR_NAME} == *".venv"* ]]; then
|
elif [[ ${FILE} == *".venv"* ]]; then
|
||||||
# This is likely the python virtual environment folder and shouldn't be parsed
|
# This is likely the python virtual environment folder and shouldn't be parsed
|
||||||
continue
|
continue
|
||||||
elif [[ ${DIR_NAME} == *".rbenv"* ]]; then
|
elif [[ ${FILE} == *".rbenv"* ]]; then
|
||||||
# This is likely the ruby environment folder and shouldn't be parsed
|
# This is likely the ruby environment folder and shouldn't be parsed
|
||||||
continue
|
continue
|
||||||
elif [[ ${FILE_TYPE} == "BASH" ]] && ! IsValidShellScript "${FILE}"; then
|
elif [[ ${FILE_TYPE} == "BASH" ]] && ! IsValidShellScript "${FILE}"; then
|
||||||
|
|
Loading…
Reference in a new issue