length_levels_linter() for length(levels(x)) --> nlevels(x)#2051
length_levels_linter() for length(levels(x)) --> nlevels(x)#2051IndrajeetPatil merged 3 commits intomainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2051 +/- ##
=======================================
Coverage 98.56% 98.56%
=======================================
Files 114 115 +1
Lines 5017 5032 +15
=======================================
+ Hits 4945 4960 +15
Misses 72 72
|
|
There are also |
|
I would put that as a separate linter. The closer analogue is But in that case, there are ways to avoid the nested For Doesn't mean we shouldn't offer such a linter (since it'll be optional for users to turn on anyway), just by way of explaining why we didn't write that so far (it's certainly crossed my mind). |
Part of #884