Skip to content

Commit

Permalink
appeas lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Oct 31, 2024
1 parent ef09a8a commit 00dcfba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/exec_cfg_check.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' Execute a check function from the validations configuration file
#'
#'
#' @param check_name [character] the name of the check function
#' @param validations_cfg [list] the the parsed `validaitons.yml` file
#' @param caller_env [environment] the environment of the calling function.
Expand All @@ -26,9 +26,9 @@ exec_cfg_check <- function(check_name, validations_cfg, caller_env, caller_call)
source(src, local = TRUE)
fn <- get(fn_cfg[["fn"]])
} else {
path <- rlang::env_get(env = caller_env, nm = "validations_cfg_path")
path <- rlang::env_get(env = caller_env, nm = "validations_cfg_path") # nolint
msg <- c("Custom validation function {.var {check_name}}",
"must specify either a {.arg pkg} or {.arg script} in {.path {path}}")
"must specify either a {.arg pkg} or {.arg script} in {.path {path}}")

Check warning on line 31 in R/exec_cfg_check.R

View workflow job for this annotation

GitHub Actions / lint

file=R/exec_cfg_check.R,line=31,col=6,[indentation_linter] Hanging indent should be 13 spaces but is 6 spaces.
cli::cli_abort(paste(msg, collapse = " "),
call = caller_call,
class = "custom_validation_cfg_malformed"
Expand Down

0 comments on commit 00dcfba

Please sign in to comment.