add .lintr detection

This commit is contained in:
assignUser 2020-08-17 12:01:25 +00:00
parent 6bb65aaa2c
commit 0f47f68445
3 changed files with 12 additions and 3 deletions

View file

@ -1 +1 @@
linters: with_defaults(object_usage_linter = NULL)
linters: with_defaults(object_usage_linter = NULL)

View file

@ -1 +1 @@
linters: with_defaults(object_usage_linter = NULL)
linters: with_defaults(object_usage_linter = NULL)

View file

@ -1695,8 +1695,17 @@ fi
# R LINTING #
################
if [ "${VALIDATE_R}" == "true" ]; then
##########################
# Check for local config #
##########################
if [ ! -f "${GITHUB_WORKSPACE}/.lintr" ]; then
info " "
info "No .lintr configuration file found, using defaults."
cp $R_LINTER_RULES $GITHUB_WORKSPACE
fi
#######################
# Lint the R files #
# 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[@]}"