Merge pull request #851 from github/noFiles

add warning:
This commit is contained in:
Lukas Gravley 2020-10-14 10:54:40 -05:00 committed by GitHub
commit a8755c9818
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,16 @@ function BuildFileList() {
fatal "[${RAW_FILE_ARRAY[*]}]"
fi
##########################################################################
# Check to make sure the raw file array is not empty or throw a warning! #
##########################################################################
if [ ${#RAW_FILE_ARRAY[@]} -eq 0 ]; then
###############################
# No files were found to lint #
###############################
warn "No files were found in the GITHUB_WORKSPACE:[${GITHUB_WORKSPACE}] to lint!"
fi
################################################
# Iterate through the array of all files found #
################################################