Skip to content

Commit 6f7d626

Browse files
Default to styling all supported file formats
Closes #963
1 parent 6f3ccf4 commit 6f7d626

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ editor_options:
66

77
# styler 1.7.0.9000 (Development version)
88

9+
**Breaking Changes**
10+
11+
- `style_dir()` and `style_pkg()` now default to styling all supported file
12+
formats (`.R`, `.Rmd`, `.Rmarkdown`, `.Rnw`, and `.qmd`) in the (package)
13+
directory (\@IndrajeetPatil, ).
14+
915
**Features**
1016

1117
- `filetype` `.qmd` is now supported, but not turned on by default (#931).

R/ui-styling.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ style_pkg <- function(pkg = ".",
7575
...,
7676
style = tidyverse_style,
7777
transformers = style(...),
78-
filetype = c("R", "Rprofile"),
78+
filetype = c("R", "Rprofile", "Rmd", "Rmarkdown", "Rnw", "Qmd"),
7979
exclude_files = "R/RcppExports.R",
8080
exclude_dirs = c("packrat", "renv"),
8181
include_roxygen_examples = TRUE,
@@ -255,7 +255,7 @@ style_dir <- function(path = ".",
255255
...,
256256
style = tidyverse_style,
257257
transformers = style(...),
258-
filetype = c("R", "Rprofile"),
258+
filetype = c("R", "Rprofile", "Rmd", "Rmarkdown", "Rnw", "Qmd"),
259259
recursive = TRUE,
260260
exclude_files = NULL,
261261
exclude_dirs = c("packrat", "renv"),

man/style_dir.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/style_pkg.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)