fix displayed lintr command

This commit is contained in:
assignUser 2020-08-17 13:30:39 +00:00
parent f9b81243db
commit 4f4784fd41
2 changed files with 2 additions and 2 deletions

View file

@ -1708,7 +1708,7 @@ if [ "${VALIDATE_R}" == "true" ]; then
# Lint the R files #
######################
# LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY"
LintCodebase "R" "lintr" "${R_LINTER_RULES}" ".*\.\(r\|R\|Rmd\|rmd\)\$" "${FILE_ARRAY_R[@]}"
LintCodebase "R" "lintr" "lintr::lint('$File') ".*\.\(r\|R\|Rmd\|rmd\)\$" "${FILE_ARRAY_R[@]}"
fi
################

View file

@ -214,7 +214,7 @@ function LintCodebase() {
# Lint the file with the updated path #
#######################################
LINT_CMD=$(
cd "${GITHUB_WORKSPACE}" || exit
cd "${GITHUB_WORKSPACE}/${DIR_NAME}" || exit
R --slave -e "errors <- lintr::lint('$FILE');print(errors);quit(save = 'no', status = if (length(errors) > 0) 1 else 0)" 2>&1
)
else