Skip to content

Commit f7589e3

Browse files
committed
fix: Update lintr config after 3.0.0 release
1 parent 0296f40 commit f7589e3

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.lintr

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
linters:
2-
with_defaults(
3-
line_length_linter = line_length_linter(100),
4-
infix_spaces_linter = NULL,
5-
object_usage_linter = NULL
2+
linters_with_defaults(
3+
line_length_linter = line_length_linter(100)
4+
)
5+
exclusions:
6+
c(
7+
"inst/rstudio",
8+
"inst/templates"
69
)

R/config.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ read_yaml <- function(path) {
1414
}
1515
}
1616

17-
option_validator <- function(...) list(
18-
check = function(value) value %in% c(...),
19-
help = cli::format_inline("Allowed values: {c(...)}.")
20-
)
17+
option_validator <- function(...) {
18+
list(
19+
check = function(value) value %in% c(...),
20+
help = cli::format_inline("Allowed values: {c(...)}.")
21+
)
22+
}
2123

2224
positive_integer_validator <- list(
2325
check = function(value) is.integer(value) && value > 0,

0 commit comments

Comments
 (0)