mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 20:52:12 -05:00
adding perl and python (#2360)
This commit is contained in:
parent
4b597858b6
commit
591688d57d
1 changed files with 26 additions and 0 deletions
|
@ -286,6 +286,32 @@ function CheckFileType() {
|
|||
################################
|
||||
FILE_ARRAY_JSCPD+=("${FILE}")
|
||||
FILE_ARRAY_RUBY+=("${FILE}")
|
||||
elif [[ ${GET_FILE_TYPE_CMD} == *"Python script"* ]]; then
|
||||
if [ "${SUPPRESS_FILE_TYPE_WARN}" == "false" ]; then
|
||||
#########################
|
||||
# It is a Python script #
|
||||
#########################
|
||||
warn "Found Python script without extension:[.py]"
|
||||
info "Please update file with proper extensions."
|
||||
fi
|
||||
################################
|
||||
# Append the file to the array #
|
||||
################################
|
||||
FILE_ARRAY_JSCPD+=("${FILE}")
|
||||
FILE_ARRAY_PYTHON+=("${FILE}")
|
||||
elif [[ ${GET_FILE_TYPE_CMD} == *"Perl script"* ]]; then
|
||||
if [ "${SUPPRESS_FILE_TYPE_WARN}" == "false" ]; then
|
||||
#######################
|
||||
# It is a Perl script #
|
||||
#######################
|
||||
warn "Found Perl script without extension:[.pl]"
|
||||
info "Please update file with proper extensions."
|
||||
fi
|
||||
################################
|
||||
# Append the file to the array #
|
||||
################################
|
||||
FILE_ARRAY_JSCPD+=("${FILE}")
|
||||
FILE_ARRAY_PERL+=("${FILE}")
|
||||
else
|
||||
############################
|
||||
# Extension was not found! #
|
||||
|
|
Loading…
Reference in a new issue