From 94b0061f1c36533612dfc4f468ba2bb0401b57bd Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 20 Dec 2023 18:02:42 -0800 Subject: [PATCH] Add note about '_' --- R/unnecessary_placeholder_linter.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/unnecessary_placeholder_linter.R b/R/unnecessary_placeholder_linter.R index 9e546326d..c032fc591 100644 --- a/R/unnecessary_placeholder_linter.R +++ b/R/unnecessary_placeholder_linter.R @@ -33,7 +33,7 @@ #' @seealso [linters] for a complete list of linters available in lintr. #' @export unnecessary_placeholder_linter <- function() { - # TODO(michaelchirico): handle R4.2.0 native placeholder _ as well + # NB: Native placeholder '_' must be used with a named argument, so it's not relevant here. xpath <- glue(" //SPECIAL[{ xp_text_in_table(magrittr_pipes) }] /following-sibling::expr[