Merge pull request #24 from github/cleanupPrints

fix format
This commit is contained in:
Lukas Gravley 2019-12-06 07:53:05 -06:00 committed by GitHub
commit 493341469a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -319,8 +319,10 @@ LintJsonFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting JSON files..." echo "Linting JSON files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -437,8 +439,10 @@ LintYmlFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting YAML files..." echo "Linting YAML files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -555,8 +559,10 @@ LintXmlFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting XML files..." echo "Linting XML files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -673,8 +679,10 @@ LintMdFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting Markdown files..." echo "Linting Markdown files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -791,8 +799,10 @@ LintBashFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting Bash files..." echo "Linting Bash files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -910,8 +920,10 @@ LintPythonFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting Python files..." echo "Linting Python files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -1029,8 +1041,10 @@ LintPerlFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting Perl files..." echo "Linting Perl files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -1148,8 +1162,10 @@ LintRubyFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting Ruby files..." echo "Linting Ruby files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -1267,8 +1283,10 @@ LintCoffeeFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting Coffee files..." echo "Linting Coffee files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -1386,8 +1404,10 @@ LintJavascriptFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting JavaScript files..." echo "Linting JavaScript files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -1572,8 +1592,10 @@ LintAnsibleFiles()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "Linting Ansible files..." echo "Linting Ansible files..."
echo "----------------------------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "" echo ""
###################### ######################
@ -2003,7 +2025,7 @@ BuildFileList()
################ ################
echo "" echo ""
echo "----------------------------------------------" echo "----------------------------------------------"
echo "Gathering list of files edited, or added in the commit..." echo "Pulling in code history and branches..."
##################################################################### #####################################################################
# Switch codebase back to master to get a list of all files changed # # Switch codebase back to master to get a list of all files changed #
@ -2025,9 +2047,11 @@ BuildFileList()
exit 1 exit 1
fi fi
######### ################
# Print # # print header #
######### ################
echo ""
echo "----------------------------------------------"
echo "Generating Diff with:[git diff --name-only 'master..$GITHUB_SHA' --diff-filter=d]" echo "Generating Diff with:[git diff --name-only 'master..$GITHUB_SHA' --diff-filter=d]"
################################################ ################################################
@ -2054,6 +2078,8 @@ BuildFileList()
################################################# #################################################
# Itterate through the array of all files found # # Itterate through the array of all files found #
################################################# #################################################
echo ""
echo "----------------------------------------------"
echo "Files that have been modified in the commit(s):" echo "Files that have been modified in the commit(s):"
for FILE in "${RAW_FILE_ARRAY[@]}" for FILE in "${RAW_FILE_ARRAY[@]}"
do do
@ -2158,7 +2184,7 @@ BuildFileList()
############################ ############################
# Extension was not found! # # Extension was not found! #
############################ ############################
echo "WARN! Failed to get file type for:[$FILE]!" echo " - WARN! Failed to get filetype for:[$FILE]!"
fi fi
done done
@ -2185,6 +2211,8 @@ BuildFileList()
################ ################
# Footer print # # Footer print #
################ ################
echo ""
echo "----------------------------------------------"
echo "Successfully gathered list of files..." echo "Successfully gathered list of files..."
} }
################################################################################ ################################################################################
@ -2192,9 +2220,11 @@ BuildFileList()
Footer() Footer()
{ {
echo "" echo ""
echo "---------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "The script has completed" echo "The script has completed"
echo "---------------------------" echo "----------------------------------------------"
echo "----------------------------------------------"
echo "ERRORS FOUND in YAML:[$ERRORS_FOUND_YML]" echo "ERRORS FOUND in YAML:[$ERRORS_FOUND_YML]"
echo "ERRORS FOUND in JSON:[$ERRORS_FOUND_JSON]" echo "ERRORS FOUND in JSON:[$ERRORS_FOUND_JSON]"
echo "ERRORS FOUND in XML:[$ERRORS_FOUND_XML]" echo "ERRORS FOUND in XML:[$ERRORS_FOUND_XML]"
@ -2206,7 +2236,7 @@ Footer()
echo "ERRORS FOUND in RUBY:[$ERRORS_FOUND_RUBY]" echo "ERRORS FOUND in RUBY:[$ERRORS_FOUND_RUBY]"
echo "ERRORS FOUND in ANSIBLE:[$ERRORS_FOUND_ANSIBLE]" echo "ERRORS FOUND in ANSIBLE:[$ERRORS_FOUND_ANSIBLE]"
echo "ERRORS FOUND in JAVASCRIPT:[$ERRORS_FOUND_JAVASCRIPT]" echo "ERRORS FOUND in JAVASCRIPT:[$ERRORS_FOUND_JAVASCRIPT]"
echo "----------------------------------------------"
echo "" echo ""
############################### ###############################