Skip to content

Commit

Permalink
Condense lint_dir(patterns=) default (#2174)
Browse files Browse the repository at this point in the history
* use literal regex for pattern= argument

* TODO

---------

Co-authored-by: AshesITR <alexander.rosenstock@web.de>
  • Loading branch information
MichaelChirico and AshesITR authored Sep 15, 2023
1 parent 20fcc05 commit 9af53f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/lint.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ lint <- function(filename, linters = NULL, ..., cache = FALSE, parse_settings =
lint_dir <- function(path = ".", ...,
relative_path = TRUE,
exclusions = list("renv", "packrat"),
pattern = rex(".", or(group(one_of("Rr"), or("", "html", "md", "nw", "rst", "tex", "txt")),
group(one_of("Qq"), "md")), end),
# TODO(r-lib/rex#85): Re-write in case-sensitive rex()
pattern = "(?i)[.](r|rmd|qmd|rnw|rhtml|rrst|rtex|rtxt)$",
parse_settings = TRUE,
show_progress = NULL) {
if (has_positional_logical(list(...))) {
Expand Down
3 changes: 1 addition & 2 deletions man/lint.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9af53f1

Please sign in to comment.