diff --git a/.lintr b/.lintr index efb8dce1..033031e1 100644 --- a/.lintr +++ b/.lintr @@ -1,6 +1,9 @@ linters: - with_defaults( - line_length_linter = line_length_linter(100), - infix_spaces_linter = NULL, - object_usage_linter = NULL + linters_with_defaults( + line_length_linter = line_length_linter(100) + ) +exclusions: + c( + "inst/rstudio", + "inst/templates" ) diff --git a/R/config.R b/R/config.R index a281eb40..7ac65222 100644 --- a/R/config.R +++ b/R/config.R @@ -14,10 +14,12 @@ read_yaml <- function(path) { } } -option_validator <- function(...) list( - check = function(value) value %in% c(...), - help = cli::format_inline("Allowed values: {c(...)}.") -) +option_validator <- function(...) { + list( + check = function(value) value %in% c(...), + help = cli::format_inline("Allowed values: {c(...)}.") + ) +} positive_integer_validator <- list( check = function(value) is.integer(value) && value > 0,