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

@ -1695,6 +1695,15 @@ fi
# R LINTING # # R LINTING #
################ ################
if [ "${VALIDATE_R}" == "true" ]; then 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 #
####################### #######################