diff --git a/lib/functions/detectFiles.sh b/lib/functions/detectFiles.sh index 3afdb517..11343bcb 100755 --- a/lib/functions/detectFiles.sh +++ b/lib/functions/detectFiles.sh @@ -254,7 +254,7 @@ function CheckFileType() { ############################ # Extension was not found! # ############################ - warn "Failed to get filetype for:[${FILE}]!" + debug "Failed to get filetype for:[${FILE}]!" fi } ################################################################################ diff --git a/lib/functions/worker.sh b/lib/functions/worker.sh index e3b0e708..f9b6a5ec 100755 --- a/lib/functions/worker.sh +++ b/lib/functions/worker.sh @@ -23,24 +23,6 @@ function LintCodebase() { TEST_CASE_RUN="${1}" && shift # Flag for if running in test cases FILE_ARRAY=("$@") # Array of files to validate (Example: ${FILE_ARRAY_JSON}) - ################ - # print header # - ################ - info "" - info "----------------------------------------------" - info "----------------------------------------------" - - debug "Running LintCodebase. FILE_TYPE: ${FILE_TYPE}. Linter name: ${LINTER_NAME}, linter command: ${LINTER_COMMAND}, TEST_CASE_RUN: ${TEST_CASE_RUN}, FILTER_REGEX_INCLUDE: ${FILTER_REGEX_INCLUDE}, FILTER_REGEX_EXCLUDE: ${FILTER_REGEX_EXCLUDE} files to lint: ${FILE_ARRAY[*]}" - - if [ "${TEST_CASE_RUN}" = "true" ]; then - info "Testing Codebase [${FILE_TYPE}] files..." - else - info "Linting [${FILE_TYPE}] files..." - fi - - info "----------------------------------------------" - info "----------------------------------------------" - ########################## # Initialize empty Array # ########################## @@ -104,6 +86,24 @@ function LintCodebase() { fi debug "Workspace path: ${WORKSPACE_PATH}" + ################ + # print header # + ################ + info "" + info "----------------------------------------------" + info "----------------------------------------------" + + debug "Running LintCodebase. FILE_TYPE: ${FILE_TYPE}. Linter name: ${LINTER_NAME}, linter command: ${LINTER_COMMAND}, TEST_CASE_RUN: ${TEST_CASE_RUN}, FILTER_REGEX_INCLUDE: ${FILTER_REGEX_INCLUDE}, FILTER_REGEX_EXCLUDE: ${FILTER_REGEX_EXCLUDE} files to lint: ${FILE_ARRAY[*]}" + + if [ "${TEST_CASE_RUN}" = "true" ]; then + info "Testing Codebase [${FILE_TYPE}] files..." + else + info "Linting [${FILE_TYPE}] files..." + fi + + info "----------------------------------------------" + info "----------------------------------------------" + ################## # Lint the files # ##################