mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 04:32:16 -05:00
add .lintr detection
This commit is contained in:
parent
6bb65aaa2c
commit
0f47f68445
3 changed files with 12 additions and 3 deletions
2
.github/linters/.lintr
vendored
2
.github/linters/.lintr
vendored
|
@ -1 +1 @@
|
|||
linters: with_defaults(object_usage_linter = NULL)
|
||||
linters: with_defaults(object_usage_linter = NULL)
|
||||
|
|
|
@ -1 +1 @@
|
|||
linters: with_defaults(object_usage_linter = NULL)
|
||||
linters: with_defaults(object_usage_linter = NULL)
|
||||
|
|
|
@ -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[@]}"
|
||||
|
|
Loading…
Reference in a new issue