Closed MichaelChirico closed 11 months ago
Detected while stress-testing the new lintr::length_test_linter() (https://github.com/r-lib/lintr/pull/2124).
lintr::length_test_linter()
I lack enough context about this function to offer a regression test, but it should be possible to do so by supplying something with length(index) != 2, then the group.name might populate incorrectly.
length(index) != 2
group.name
great catch, thank you!
Detected while stress-testing the new
lintr::length_test_linter()
(https://github.com/r-lib/lintr/pull/2124).I lack enough context about this function to offer a regression test, but it should be possible to do so by supplying something with
length(index) != 2
, then thegroup.name
might populate incorrectly.