diff --git a/NEWS.md b/NEWS.md index 140ee54ea..042c87f8e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -86,7 +86,7 @@ ## Notes -* All user-facing messages are now prepared using the `{cli}` package (#2418, @IndrajeetPatil). All messages have been reviewed and updated to be more informative and consistent. +* All user-facing messages (including progress bar) are now prepared using the `{cli}` package (#2418, @IndrajeetPatil). All messages have been reviewed and updated to be more informative and consistent. * {lintr} now depends on R version 4.0.0. It already does so implicitly due to recursive upstream dependencies requiring this version; we've simply made that dependency explicit and up-front (#2569, @MichaelChirico). # lintr 3.1.2 diff --git a/R/lint.R b/R/lint.R index 038253d5c..d9e135692 100644 --- a/R/lint.R +++ b/R/lint.R @@ -184,9 +184,7 @@ lint_dir <- function(path = ".", ..., lints <- flatten_lints(lapply( cli::cli_progress_along(files, name = "Running linters"), - function(idx) { - lint(files[idx], ..., parse_settings = FALSE, exclusions = exclusions) - } + function(idx) lint(files[idx], ..., parse_settings = FALSE, exclusions = exclusions) )) lints <- reorder_lints(lints)