diff --git a/lib/linter.sh b/lib/linter.sh index e331c0fb..e8c5995c 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -319,8 +319,10 @@ LintJsonFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting JSON files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -437,8 +439,10 @@ LintYmlFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting YAML files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -555,8 +559,10 @@ LintXmlFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting XML files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -673,8 +679,10 @@ LintMdFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting Markdown files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -791,8 +799,10 @@ LintBashFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting Bash files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -910,8 +920,10 @@ LintPythonFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting Python files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -1029,8 +1041,10 @@ LintPerlFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting Perl files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -1148,8 +1162,10 @@ LintRubyFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting Ruby files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -1267,8 +1283,10 @@ LintCoffeeFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting Coffee files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -1386,8 +1404,10 @@ LintJavascriptFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting JavaScript files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -1572,8 +1592,10 @@ LintAnsibleFiles() ################ echo "" echo "----------------------------------------------" + echo "----------------------------------------------" echo "Linting Ansible files..." echo "----------------------------------------------" + echo "----------------------------------------------" echo "" ###################### @@ -2003,7 +2025,7 @@ BuildFileList() ################ 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 # @@ -2025,9 +2047,11 @@ BuildFileList() exit 1 fi - ######### - # Print # - ######### + ################ + # print header # + ################ + echo "" + echo "----------------------------------------------" 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 # ################################################# + echo "" + echo "----------------------------------------------" echo "Files that have been modified in the commit(s):" for FILE in "${RAW_FILE_ARRAY[@]}" do @@ -2158,7 +2184,7 @@ BuildFileList() ############################ # Extension was not found! # ############################ - echo "WARN! Failed to get file type for:[$FILE]!" + echo " - WARN! Failed to get filetype for:[$FILE]!" fi done @@ -2185,6 +2211,8 @@ BuildFileList() ################ # Footer print # ################ + echo "" + echo "----------------------------------------------" echo "Successfully gathered list of files..." } ################################################################################ @@ -2192,9 +2220,11 @@ BuildFileList() Footer() { echo "" - echo "---------------------------" + echo "----------------------------------------------" + echo "----------------------------------------------" echo "The script has completed" - echo "---------------------------" + echo "----------------------------------------------" + echo "----------------------------------------------" echo "ERRORS FOUND in YAML:[$ERRORS_FOUND_YML]" echo "ERRORS FOUND in JSON:[$ERRORS_FOUND_JSON]" 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 ANSIBLE:[$ERRORS_FOUND_ANSIBLE]" echo "ERRORS FOUND in JAVASCRIPT:[$ERRORS_FOUND_JAVASCRIPT]" - + echo "----------------------------------------------" echo "" ###############################