-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
look for is.unsorted() behavior in sort_linter #2076
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2076 +/- ##
=======================================
Coverage 99.64% 99.64%
=======================================
Files 117 117
Lines 5106 5117 +11
=======================================
+ Hits 5088 5099 +11
Misses 18 18
|
Ah that's annoying.
So I can cleanly merge a simple NEWS update locally, but not on the web without dismissing the review. Alas. |
@@ -23,6 +23,7 @@ | |||
+ `yoda_test_linter()` | |||
* `sprintf_linter()` is pipe-aware, so that `x %>% sprintf(fmt = "%s")` no longer lints (#1943, @MichaelChirico). | |||
* `line_length_linter()` helpfully includes the line length in the lint message (#2057, @MichaelChirico). | |||
* `sort_linter()` checks for code like `x == sort(x)` which is better served by using the function `is.unsorted()` (part of #884, @MichaelChirico). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty cool! I had no idea that this function existed 🙈
Closes #2072, part of #884