From 5bad85b0ddde569904f47730067c8d490b55398a Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Thu, 2 Jun 2022 01:10:40 -0700 Subject: [PATCH] add more cache-like files to .lintr exclusions Discovered as part of revdep checks for upcoming CRAN release -- see https://github.com/r-lib/lintr/issues/1340. We can avoid this altogether by simply excluding these cache-like dump scripts from linting in the first place. --- .lintr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.lintr b/.lintr index b37c08e..42da12f 100644 --- a/.lintr +++ b/.lintr @@ -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), + )