mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 00:31:07 -05:00
adding prints
This commit is contained in:
parent
377fa46d4e
commit
806174c090
1 changed files with 15 additions and 8 deletions
|
@ -1545,6 +1545,16 @@ Eslint()
|
|||
#### Function StandardLint #####################################################
|
||||
StandardLint()
|
||||
{
|
||||
####################
|
||||
# Pull in the file #
|
||||
####################
|
||||
FILE=$1
|
||||
|
||||
#####################
|
||||
# Get the file name #
|
||||
#####################
|
||||
FILE_NAME=$(basename "$FILE" 2>&1)
|
||||
|
||||
#########################################################################
|
||||
# Need to get the ENV vars from the linter rules to run in command line #
|
||||
#########################################################################
|
||||
|
@ -1594,19 +1604,16 @@ StandardLint()
|
|||
# echo "ENV:[$ENV]"
|
||||
ENV_STRING+="--env ${ENV} "
|
||||
done
|
||||
####################
|
||||
# Pull in the file #
|
||||
####################
|
||||
FILE=$1
|
||||
|
||||
#####################
|
||||
# Get the file name #
|
||||
#####################
|
||||
FILE_NAME=$(basename "$FILE" 2>&1)
|
||||
########################################
|
||||
# Remove trailing and ending witespace #
|
||||
########################################
|
||||
ENV_STRING="$(echo -e "${ENV_STRING}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
|
||||
|
||||
################################
|
||||
# Lint the file with the rules #
|
||||
################################
|
||||
echo " - Utilizing Env:[$ENV_STRING]"
|
||||
STANDARD_LINT_CMD=$(standard "$ENV_STRING" "$FILE" 2>&1)
|
||||
|
||||
#######################
|
||||
|
|
Loading…
Reference in a new issue