Skip to content

Commit

Permalink
add more cache-like files to .lintr exclusions
Browse files Browse the repository at this point in the history
Discovered as part of revdep checks for upcoming CRAN release -- see r-lib/lintr#1340.

We can avoid this altogether by simply excluding these cache-like dump scripts from linting in the first place.
  • Loading branch information
MichaelChirico authored Jun 2, 2022
1 parent fb9a38e commit 5bad85b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ linters: with_defaults(
object_usage_linter = NULL, # 1
absolute_paths_linter = NULL # XPath is detected as absolute path
)
exclusions: c(list.files(path = "tests/cache", recursive = T, full.names = T), list.files(path = "inst", recursive = T, full.names = T))
exclusions: c(
list.files(path = "tests/cache", pattern = "\\.R$", recursive = TRUE, full.names = TRUE),
list.files(path = "inst", pattern = "\\.R$", recursive = TRUE, full.names = TRUE),
list.files(path = "vignettes/intro/0", full.names = TRUE),
list.files(path = "vignettes/parsing/0", full.names = TRUE),
)

0 comments on commit 5bad85b

Please sign in to comment.