Skip to content

Commit 3259158

Browse files
committed
fmt
1 parent fd388d3 commit 3259158

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

R/fix.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ fix <- function(
6464
interactive = FALSE
6565
) {
6666
if (isFALSE(verbose) | is_testing()) {
67-
withr::local_options(cli.default_handler = function(...) {})
67+
withr::local_options(cli.default_handler = function(...) {
68+
})
6869
}
6970

7071
if (isTRUE(interactive)) {

R/lint.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ lint <- function(
9696
verbose = TRUE
9797
) {
9898
if (isFALSE(verbose) | is_testing()) {
99-
withr::local_options(cli.default_handler = function(...) {})
99+
withr::local_options(cli.default_handler = function(...) {
100+
})
100101
}
101102

102103
if (is_testing()) {

R/utils.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ resolve_linters <- function(path, linters, exclude_linters) {
115115

116116
linters <- setdiff(linters, exclude_linters)
117117
if (any(fs::is_absolute_path(linters))) {
118-
regex <- paste0("/(", paste(exclude_linters, collapse = "|"), ")\\.(yml|yaml)$")
118+
regex <- paste0(
119+
"/(",
120+
paste(exclude_linters, collapse = "|"),
121+
")\\.(yml|yaml)$"
122+
)
119123
linters <- grep(regex, linters, invert = TRUE, value = TRUE)
120124
}
121125
linters <- keep_or_exclude_testthat_rules(path, linters)

0 commit comments

Comments
 (0)