diff --git a/R/tools.R b/R/tools.R index ba7eb925..d25b2def 100644 --- a/R/tools.R +++ b/R/tools.R @@ -167,7 +167,7 @@ rhino_style <- function() { format_r <- function(paths, exclude_files = c("__init__\\.R")) { style_box_use <- box.linters::style_box_use_dir if (!box.linters::is_treesitter_installed()) { - style_box_use <- function(path) { } + style_box_use <- function(path, exclude_files) { } cli::cli_warn( c( "x" = "The packages {{treesitter}} and {{treesitter.r}} are required by some features of `format_r()`.", #nolint