mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 05:02:15 -05:00
look at folders and not file names
This commit is contained in:
parent
a0d4012b67
commit
0e5f996c3c
1 changed files with 5 additions and 5 deletions
|
@ -160,19 +160,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 [[ ${FILE} == *"node_modules"* ]]; then
|
if [[ ${DIR_NAME} == *"node_modules"* ]]; then
|
||||||
# This is a node modules file
|
# This is a node modules file
|
||||||
continue
|
continue
|
||||||
elif [[ ${FILE} == *"${TEST_CASE_FOLDER}"* ]]; then
|
elif [[ ${DIR_NAME} == *"${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 [[ ${FILE} == *".git"* ]] && [[ ${FILE} != *".github"* ]]; then
|
elif [[ ${DIR_NAME} == *".git"* ]] && [[ ${DIR_NAME} != *".github"* ]]; 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 [[ ${FILE} == *".venv"* ]]; then
|
elif [[ ${DIR_NAME} == *".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 [[ ${FILE} == *".rbenv"* ]]; then
|
elif [[ ${DIR_NAME} == *".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