mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-26 10:41:04 -05:00
fix
This commit is contained in:
parent
a745a38df9
commit
8baec3bc77
2 changed files with 2 additions and 2 deletions
|
@ -1699,7 +1699,7 @@ if [ "${VALIDATE_R}" == "true" ]; then
|
||||||
# Lint the R files #
|
# Lint the R files #
|
||||||
#######################
|
#######################
|
||||||
# LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY"
|
# LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY"
|
||||||
LintCodebase "R" "lintr" "R --slave -e 'lintr::lint(" ".*\.\(r\|R\|Rmd\|rmd\)\$" "${FILE_ARRAY_R[@]}"
|
LintCodebase "R" "lintr" "${R_LINTER_RULES}" ".*\.\(r\|R\|Rmd\|rmd\)\$" "${FILE_ARRAY_R[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|
|
@ -215,7 +215,7 @@ function LintCodebase() {
|
||||||
#######################################
|
#######################################
|
||||||
LINT_CMD=$(
|
LINT_CMD=$(
|
||||||
cd "${GITHUB_WORKSPACE}" || exit
|
cd "${GITHUB_WORKSPACE}" || exit
|
||||||
${LINTER_COMMAND}"${DIR_NAME}/$FILE_NAME")' 2>&1 #'
|
R --slave -e "lintr::lint('${DIR_NAME}/$FILE_NAME')" 2>&1
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
################################
|
################################
|
||||||
|
|
Loading…
Reference in a new issue