Skip to content

Commit

Permalink
Merge pull request #296 from Appsilon/fix-linter
Browse files Browse the repository at this point in the history
Update lintr config after 3.0.0 release
  • Loading branch information
kamilzyla authored Jun 14, 2022
2 parents 0296f40 + f7589e3 commit 7d45ff1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .lintr
Original file line number Diff line number Diff line change
@@ -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"
)
10 changes: 6 additions & 4 deletions R/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7d45ff1

Please sign in to comment.