diff --git a/.Rbuildignore b/.Rbuildignore index 8289f29aa..1fb1046a3 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -18,6 +18,6 @@ ^man-roxygen$ ^LICENSE\.md$ ^MAINTENANCE\.md$ -^\.lintr$ +^\.lintr\.R$ ^notes$ ^CRAN-SUBMISSION$ diff --git a/.lintr b/.lintr.R similarity index 80% rename from .lintr rename to .lintr.R index 46330ce92..e270138c7 100644 --- a/.lintr +++ b/.lintr.R @@ -1,4 +1,5 @@ -linters: funs <- c( +linters <- list(lintr::undesirable_function_linter( + fun = c( # Base messaging "message" = "use cli::cli_inform()", "warning" = "use cli::cli_warn()", @@ -12,8 +13,6 @@ linters: funs <- c( "cli_alert_info" = "use cli::cli_inform()", "cli_alert_success" = "use cli::cli_inform()", "cli_alert_warning" = "use cli::cli_inform()" - ) - list(lintr::undesirable_function_linter( - fun = funs, - symbol_is_undesirable = FALSE - )) + ), + symbol_is_undesirable = FALSE +))