mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 07:42:13 -05:00
commit
030b94e178
2 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,7 @@ function BuildFileList() {
|
||||||
# Switch codebase back to the default branch to get a list of all files changed #
|
# Switch codebase back to the default branch to get a list of all files changed #
|
||||||
#################################################################################
|
#################################################################################
|
||||||
SWITCH_CMD=$(
|
SWITCH_CMD=$(
|
||||||
git -C "$GITHUB_WORKSPACE" pull --quiet
|
# git -C "$GITHUB_WORKSPACE" pull --quiet
|
||||||
git -C "$GITHUB_WORKSPACE" checkout "$DEFAULT_BRANCH" 2>&1
|
git -C "$GITHUB_WORKSPACE" checkout "$DEFAULT_BRANCH" 2>&1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -142,6 +142,9 @@ function LintCodebase() {
|
||||||
elif [[ $FILE == *"$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 [[ $FILE == *".git"* ]]; then
|
||||||
|
# This is likely the .git folder and shouldnt be parsed
|
||||||
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##############
|
##############
|
||||||
|
|
Loading…
Reference in a new issue