-
Couldn't load subscription status.
- Fork 195
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Milestone
Description
Noticed while working on #1078.
Compare
expect_lint(
trim_some("
fun <- function() {
a <- 1
}
"),
rex("local variable", anything, "assigned but may not be used"),
linter
)
and
expect_lint(
trim_some("
fun = function() {
a = 1
}
"),
rex("local variable", anything, "assigned but may not be used"),
linter
)
The latter test fails on HEAD because the xpath for = assignments is wrong. Fix forthcoming.
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior