diff --git a/docs/disabling-linters.md b/docs/disabling-linters.md index d96385c8..ec6b81b6 100644 --- a/docs/disabling-linters.md +++ b/docs/disabling-linters.md @@ -905,7 +905,8 @@ var = "terrible code down here..." - `.github/linters/.lintr` - You can pass multiple rules and overwrite default rules -- You can use either one `.lintr` file in the root of your repository and/or additonal `.lintr` files in subdirectories. When linting a file lintr will look for config files from the file location upwards and will use the closest one. +- You can use either one `.lintr` file in the root of your repository and/or additonal `.lintr` files in subdirectories. When linting a file lintr will look for config files from the file location upwards and will use the closest one. +- Absolute paths for exclusions will not work due to the code being linted within the docker environment. Use paths relative to the `.lintr` file in which youare adding them. - **Note:** The defaults adhere to the [tidyverse styleguide](https://style.tidyverse.org/) ### lintr disable single line diff --git a/lib/linter.sh b/lib/linter.sh index e3cbad39..401a5627 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1707,7 +1707,6 @@ if [ "${VALIDATE_R}" == "true" ]; then ###################### # Lint the R files # ###################### - # LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY" LintCodebase "R" "lintr" "lintr::lint(File)" ".*\.\(r\|R\|Rmd\|rmd\)\$" "${FILE_ARRAY_R[@]}" fi