-
Notifications
You must be signed in to change notification settings - Fork 193
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Description
The following code gives a warning when lint
is applied:
library(glue)
test <- function() {
x <- 1
glue("{x}")
}
The warning is local variable 'x' assigned but may not be used
.
It appears the linter object_usage_linter
refers to codetools::checkUsage
, which is not available on github unfortunately (so I can't open an issue). I was wondering if this issue could be handle by lintr
directly or if a workaround exists.
For now, I applied a #nolint (unused variable)
for each problematic line.
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior