mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
Fix shfmt errors
This commit is contained in:
parent
e1a83d9f70
commit
b7e5dfce01
11 changed files with 152 additions and 134 deletions
|
@ -39,7 +39,10 @@ CleanTestFiles() {
|
||||||
##################
|
##################
|
||||||
# Find the files #
|
# Find the files #
|
||||||
##################
|
##################
|
||||||
mapfile -t FIND_CMD < <(cd "${GITHUB_WORKSPACE}" || exit 1 ; find "${GITHUB_WORKSPACE}" -type f -name "*_bad_*" 2>&1)
|
mapfile -t FIND_CMD < <(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
find "${GITHUB_WORKSPACE}" -type f -name "*_bad_*" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
@ -70,7 +73,10 @@ CleanTestFiles() {
|
||||||
################################
|
################################
|
||||||
# Its a test, we can delete it #
|
# Its a test, we can delete it #
|
||||||
################################
|
################################
|
||||||
REMOVE_FILE_CMD=$(cd "${GITHUB_WORKSPACE}" || exit 1; rm -f "$FILE" 2>&1)
|
REMOVE_FILE_CMD=$(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
rm -f "$FILE" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
@ -96,7 +102,10 @@ CleanTestDockerFiles() {
|
||||||
##################
|
##################
|
||||||
# Find the files #
|
# Find the files #
|
||||||
##################
|
##################
|
||||||
mapfile -t FIND_CMD < <(cd "${GITHUB_WORKSPACE}" || exit 1 ; find "${GITHUB_WORKSPACE}" -type f -name "*Dockerfile" 2>&1)
|
mapfile -t FIND_CMD < <(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
find "${GITHUB_WORKSPACE}" -type f -name "*Dockerfile" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
@ -127,7 +136,10 @@ CleanTestDockerFiles() {
|
||||||
################################
|
################################
|
||||||
# Its a test, we can delete it #
|
# Its a test, we can delete it #
|
||||||
################################
|
################################
|
||||||
REMOVE_FILE_CMD=$(cd "${GITHUB_WORKSPACE}" || exit 1; rm -f "$FILE" 2>&1)
|
REMOVE_FILE_CMD=$(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
rm -f "$FILE" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
@ -153,7 +165,10 @@ CleanSHAFolder() {
|
||||||
##################
|
##################
|
||||||
# Find the files #
|
# Find the files #
|
||||||
##################
|
##################
|
||||||
REMOVE_CMD=$(cd "${GITHUB_WORKSPACE}" || exit 1; sudo rm -rf "${GITHUB_SHA}" 2>&1)
|
REMOVE_CMD=$(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
sudo rm -rf "${GITHUB_SHA}" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
@ -178,7 +193,10 @@ RenameTestFolder() {
|
||||||
#####################
|
#####################
|
||||||
# Rename the folder #
|
# Rename the folder #
|
||||||
#####################
|
#####################
|
||||||
RENAME_FOLDER_CMD=$(cd "${GITHUB_WORKSPACE}" || exit 1; mv "${TEST_FOLDER}" "${CLEAN_FOLDER}" 2>&1)
|
RENAME_FOLDER_CMD=$(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
mv "${TEST_FOLDER}" "${CLEAN_FOLDER}" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
@ -205,7 +223,10 @@ CleanPowershell() {
|
||||||
##################
|
##################
|
||||||
# Find the files #
|
# Find the files #
|
||||||
##################
|
##################
|
||||||
mapfile -t FIND_CMD < <(cd "${GITHUB_WORKSPACE}" || exit 1 ; find "${GITHUB_WORKSPACE}" -type f -name "*.psd1" 2>&1)
|
mapfile -t FIND_CMD < <(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
find "${GITHUB_WORKSPACE}" -type f -name "*.psd1" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
@ -236,7 +257,10 @@ CleanPowershell() {
|
||||||
################################
|
################################
|
||||||
# Its a test, we can delete it #
|
# Its a test, we can delete it #
|
||||||
################################
|
################################
|
||||||
REMOVE_FILE_CMD=$(cd "${GITHUB_WORKSPACE}" || exit 1; rm -f "$FILE" 2>&1)
|
REMOVE_FILE_CMD=$(
|
||||||
|
cd "${GITHUB_WORKSPACE}" || exit 1
|
||||||
|
rm -f "$FILE" 2>&1
|
||||||
|
)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
|
|
|
@ -21,8 +21,7 @@ PROCESS_CHECK=0 # Count of times to check the process
|
||||||
################################################################################
|
################################################################################
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function CheckGHEPid ######################################################
|
#### Function CheckGHEPid ######################################################
|
||||||
CheckGHEPid()
|
CheckGHEPid() {
|
||||||
{
|
|
||||||
##################################
|
##################################
|
||||||
# Check to prevent infinite loop #
|
# Check to prevent infinite loop #
|
||||||
##################################
|
##################################
|
||||||
|
@ -75,8 +74,7 @@ CheckGHEPid()
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function CheckGHEProcess ##################################################
|
#### Function CheckGHEProcess ##################################################
|
||||||
CheckGHEProcess()
|
CheckGHEProcess() {
|
||||||
{
|
|
||||||
##################################
|
##################################
|
||||||
# Check to prevent infinite loop #
|
# Check to prevent infinite loop #
|
||||||
##################################
|
##################################
|
||||||
|
@ -139,8 +137,7 @@ CheckGHEProcess()
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function RunConfigApply ###################################################
|
#### Function RunConfigApply ###################################################
|
||||||
RunConfigApply()
|
RunConfigApply() {
|
||||||
{
|
|
||||||
##########
|
##########
|
||||||
# Header #
|
# Header #
|
||||||
##########
|
##########
|
||||||
|
|
|
@ -288,8 +288,6 @@ for LANGUAGE in "${LANGUAGE_ARRAY[@]}"; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
########################## FUNCTIONS BELOW #####################################
|
########################## FUNCTIONS BELOW #####################################
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -1271,7 +1269,6 @@ LINTER_COMMANDS_ARRAY['TYPESCRIPT_STANDARD']="standard --parser @typescript-esli
|
||||||
LINTER_COMMANDS_ARRAY['XML']="xmllint"
|
LINTER_COMMANDS_ARRAY['XML']="xmllint"
|
||||||
LINTER_COMMANDS_ARRAY['YAML']="yamllint -c ${YAML_LINTER_RULES}"
|
LINTER_COMMANDS_ARRAY['YAML']="yamllint -c ${YAML_LINTER_RULES}"
|
||||||
|
|
||||||
|
|
||||||
debug "--- Linter commands ---"
|
debug "--- Linter commands ---"
|
||||||
debug "-----------------------"
|
debug "-----------------------"
|
||||||
for i in "${!LINTER_COMMANDS_ARRAY[@]}"; do
|
for i in "${!LINTER_COMMANDS_ARRAY[@]}"; do
|
||||||
|
|
Loading…
Reference in a new issue