Repository navigation
Conversation
| rev_sort_lints <- xml_nodes_to_lints( | ||
| rev_sort_calls, | ||
| source_expression = source_expression, | ||
| lint_message = "Use sort(x, decreasing = TRUE) instead of rev(sort(x)). If present, `na.last` value needs to be flipped", |
There was a problem hiding this comment.
This could eventually be tweaked/improved to display the exact call users should use, including the updated na.last value but I'm hoping this is good enough for a first pass.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3066 +/- ##
=======================================
Coverage 99.25% 99.25%
=======================================
Files 128 128
Lines 7388 7396 +8
=======================================
+ Hits 7333 7341 +8
Misses 55 55 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| source_expression = source_expression, | ||
| lint_message = paste( | ||
| "Use sort(x, decreasing = TRUE) instead of rev(sort(x)). | ||
| If present, `na.last` value needs to be flipped" |
There was a problem hiding this comment.
Agree we can improve this later
| rev_sort_calls, | ||
| source_expression = source_expression, | ||
| lint_message = paste( | ||
| "Use sort(x, decreasing = TRUE) instead of rev(sort(x)). |
There was a problem hiding this comment.
odd to see paste() but the string has the embedded newline, I reckon it's meant to be ", at the end of this line?
(Do we need paste anyway? It looks like it'll fit in 120 characters)
MichaelChirico
left a comment
There was a problem hiding this comment.
Ready to merge after nit fix, thanks!
Fix #2614.