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