mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 16:51:05 -05:00
Ditch empty echos
This commit is contained in:
parent
adb504d233
commit
c541a221bb
6 changed files with 0 additions and 37 deletions
|
@ -29,11 +29,9 @@ DOCKERFILE_PATH="${DOCKERFILE_PATH}" # Path to the Dockerfile to be uploaded
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function Header ###########################################################
|
#### Function Header ###########################################################
|
||||||
Header() {
|
Header() {
|
||||||
echo
|
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
info "----- GitHub Actions remove image from DockerHub ------"
|
info "----- GitHub Actions remove image from DockerHub ------"
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function ValidateInput ####################################################
|
#### Function ValidateInput ####################################################
|
||||||
|
@ -42,11 +40,9 @@ ValidateInput() {
|
||||||
################
|
################
|
||||||
# Print header #
|
# Print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Gathering variables..."
|
info "Gathering variables..."
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# Validate GITHUB_WORKSPACE #
|
# Validate GITHUB_WORKSPACE #
|
||||||
|
@ -127,11 +123,9 @@ LoginToDocker() {
|
||||||
################
|
################
|
||||||
# Print header #
|
# Print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Login to DockerHub..."
|
info "Login to DockerHub..."
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
# Login to DockerHub #
|
# Login to DockerHub #
|
||||||
|
@ -161,11 +155,9 @@ RemoveImage() {
|
||||||
################
|
################
|
||||||
# Print header #
|
# Print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Removing the DockerFile image:[${IMAGE_REPO}:${IMAGE_VERSION}]"
|
info "Removing the DockerFile image:[${IMAGE_REPO}:${IMAGE_VERSION}]"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Create Token to auth to DockerHub #
|
# Create Token to auth to DockerHub #
|
||||||
|
@ -220,11 +212,9 @@ RemoveImage() {
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function Footer ###########################################################
|
#### Function Footer ###########################################################
|
||||||
Footer() {
|
Footer() {
|
||||||
echo
|
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
info "The step has completed"
|
info "The step has completed"
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
################################## MAIN ########################################
|
################################## MAIN ########################################
|
||||||
|
|
|
@ -35,11 +35,9 @@ UPDATE_MAJOR_TAG=0 # Flag to deploy the major tag version as
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function Header ###########################################################
|
#### Function Header ###########################################################
|
||||||
Header() {
|
Header() {
|
||||||
echo
|
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
info "---- GitHub Actions Upload image to [${REGISTRY}] ----"
|
info "---- GitHub Actions Upload image to [${REGISTRY}] ----"
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function ValidateInput ####################################################
|
#### Function ValidateInput ####################################################
|
||||||
|
@ -48,11 +46,9 @@ ValidateInput() {
|
||||||
################
|
################
|
||||||
# Print header #
|
# Print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Gathering variables..."
|
info "Gathering variables..."
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
# Validate GITHUB_WORKSPACE #
|
# Validate GITHUB_WORKSPACE #
|
||||||
|
@ -232,11 +228,9 @@ Authenticate() {
|
||||||
################
|
################
|
||||||
# Print header #
|
# Print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Login to ${NAME}..."
|
info "Login to ${NAME}..."
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Auth to service #
|
# Auth to service #
|
||||||
|
@ -266,11 +260,9 @@ BuildImage() {
|
||||||
################
|
################
|
||||||
# Print header #
|
# Print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Building the DockerFile image..."
|
info "Building the DockerFile image..."
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# Validate the DOCKERFILE_PATH #
|
# Validate the DOCKERFILE_PATH #
|
||||||
|
@ -333,11 +325,9 @@ UploadImage() {
|
||||||
################
|
################
|
||||||
# Print header #
|
# Print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Uploading the DockerFile image to ${REGISTRY}..."
|
info "Uploading the DockerFile image to ${REGISTRY}..."
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
# Upload the docker image that was created #
|
# Upload the docker image that was created #
|
||||||
|
@ -428,11 +418,9 @@ UploadImage() {
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function Footer ###########################################################
|
#### Function Footer ###########################################################
|
||||||
Footer() {
|
Footer() {
|
||||||
echo
|
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
info "The step has completed"
|
info "The step has completed"
|
||||||
info "-------------------------------------------------------"
|
info "-------------------------------------------------------"
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
################################## MAIN ########################################
|
################################## MAIN ########################################
|
||||||
|
|
|
@ -69,7 +69,6 @@ function BuildFileList() {
|
||||||
################################################
|
################################################
|
||||||
# Iterate through the array of all files found #
|
# Iterate through the array of all files found #
|
||||||
################################################
|
################################################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Files that have been modified in the commit(s):"
|
info "Files that have been modified in the commit(s):"
|
||||||
for FILE in "${RAW_FILE_ARRAY[@]}"; do
|
for FILE in "${RAW_FILE_ARRAY[@]}"; do
|
||||||
|
@ -527,7 +526,6 @@ function BuildFileList() {
|
||||||
################
|
################
|
||||||
# Footer print #
|
# Footer print #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Successfully gathered list of files..."
|
info "Successfully gathered list of files..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -364,11 +364,9 @@ Header() {
|
||||||
##########
|
##########
|
||||||
# Prints #
|
# Prints #
|
||||||
##########
|
##########
|
||||||
echo
|
|
||||||
info "---------------------------------------------"
|
info "---------------------------------------------"
|
||||||
info "--- GitHub Actions Multi Language Linter ----"
|
info "--- GitHub Actions Multi Language Linter ----"
|
||||||
info "---------------------------------------------"
|
info "---------------------------------------------"
|
||||||
echo
|
|
||||||
info "---------------------------------------------"
|
info "---------------------------------------------"
|
||||||
info "The Super-Linter source code can be found at:"
|
info "The Super-Linter source code can be found at:"
|
||||||
info " - https://github.com/github/super-linter"
|
info " - https://github.com/github/super-linter"
|
||||||
|
@ -932,13 +930,11 @@ CallStatusAPI() {
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function Reports ##########################################################
|
#### Function Reports ##########################################################
|
||||||
Reports() {
|
Reports() {
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Generated reports:"
|
info "Generated reports:"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# Prints output report if enabled #
|
# Prints output report if enabled #
|
||||||
|
@ -958,13 +954,11 @@ Reports() {
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function Footer ###########################################################
|
#### Function Footer ###########################################################
|
||||||
Footer() {
|
Footer() {
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "The script has completed"
|
info "The script has completed"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
# Need to clean up the lanuage array of duplicates #
|
# Need to clean up the lanuage array of duplicates #
|
||||||
|
@ -1028,10 +1022,8 @@ Footer() {
|
||||||
########################
|
########################
|
||||||
# Footer prints Exit 0 #
|
# Footer prints Exit 0 #
|
||||||
########################
|
########################
|
||||||
echo
|
|
||||||
notice "All file(s) linted successfully with no errors detected"
|
notice "All file(s) linted successfully with no errors detected"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
# Successful exit
|
# Successful exit
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ function GetValidationInfo() {
|
||||||
############################################
|
############################################
|
||||||
# Print headers for user provided env vars #
|
# Print headers for user provided env vars #
|
||||||
############################################
|
############################################
|
||||||
echo
|
|
||||||
info "--------------------------------------------"
|
info "--------------------------------------------"
|
||||||
info "Gathering user validation information..."
|
info "Gathering user validation information..."
|
||||||
|
|
||||||
|
|
|
@ -276,13 +276,11 @@ function TestCodebase() {
|
||||||
################
|
################
|
||||||
# print header #
|
# print header #
|
||||||
################
|
################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "Testing Codebase [${FILE_TYPE}] files..."
|
info "Testing Codebase [${FILE_TYPE}] files..."
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Validate we have linter installed #
|
# Validate we have linter installed #
|
||||||
|
@ -562,11 +560,9 @@ function RunTestCases() {
|
||||||
#################
|
#################
|
||||||
# Header prints #
|
# Header prints #
|
||||||
#################
|
#################
|
||||||
echo
|
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
info "-------------- TEST CASE RUN -----------------"
|
info "-------------- TEST CASE RUN -----------------"
|
||||||
info "----------------------------------------------"
|
info "----------------------------------------------"
|
||||||
echo
|
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Test case languages #
|
# Test case languages #
|
||||||
|
|
Loading…
Reference in a new issue