Skip to content

Commit 3dbf24d

Browse files
authored
Merge pull request #703 from dmurdoch/patch-1
Include "demo" directory in `lint_package`
2 parents 180e1a1 + 1600c00 commit 3dbf24d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* `unneeded_concatenation_linter` now correctly considers arguments piped in via magrittr `%>%` (#573, #585, @michaelquinn32)
3737
* Set the default `complexity_limit` in `cyclocomp_linter` to 15. This is the same complexity limit that is enforced via
3838
`default_linters` (#693, #695, @AshesITR).
39+
* `lint_package()` now lints files in the `demo` directory by default (#703, @dmurdoch).
3940

4041
# lintr 2.0.1
4142

R/lint.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ lint_package <- function(path = ".", relative_path = TRUE, ...,
267267
pattern = pattern
268268
)
269269

270-
lints <- lint_dir(file.path(path, c("R", "tests", "inst", "vignettes", "data-raw")),
270+
lints <- lint_dir(file.path(path, c("R", "tests", "inst", "vignettes", "data-raw", "demo")),
271271
relative_path = FALSE, exclusions = exclusions, parse_settings = FALSE, ...)
272272

273273
if (isTRUE(relative_path)) {

0 commit comments

Comments
 (0)