mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
fix displayed lintr command
This commit is contained in:
parent
f9b81243db
commit
4f4784fd41
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
################
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue