-
Notifications
You must be signed in to change notification settings - Fork 187
Apply all but some linters #2328
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
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2328 +/- ##
==========================================
- Coverage 99.40% 99.13% -0.27%
==========================================
Files 124 124
Lines 5561 5574 +13
==========================================
- Hits 5528 5526 -2
- Misses 33 48 +15 ☔ View full report in Codecov by Sentry. |
|
TIL. I admit it looks strange to me this way. But may as well use the feature we've written. |
Oh, I see, we need to supply |
Sounds good. Any usages in the wild of this? I suspect not so a breaking change won't have much impact. |
cc @Bisaloo it seems you are using |
In the public repos, |
Draft while #2332 is pending. |
I would be interested in the performance implications of this change. |
Thanks for pinging 🙏! As @MichaelChirico pointed out, the |
Good call-out. I think it's slower, but not substantially: system.time(lint_package())
# this branch
# user system elapsed
# 306.824 4.011 311.853
# main
# user system elapsed
# 256.827 2.310 259.812 |
Here are the timings of the slowest 16 individual linters:
|
20% slowdown seems harsh. I'm surprised by object_overwrite_linter. |
not sure that's the right framing. many of these are linters we applied to ourselves but just aren't in the .lintr suite. I think more importantly it still runs faster than many of the other GHA checks so we won't really notice. Eventually, parallelism can help. |
Current timings:
Actually (still) 50% slower on this machine! But the absolute time is only 3 minutes. I think we should just merge & keep working on some performance issues going forward, if we really notice the |
I agree. Are those timings from the same machine as before? |
no. best guess is the faster absolute timings come from a machine with the faster dev version of {xmlparsedata} installed. Won't be able to reproduce that any time soon though. |
This will make it easier to apply the panoply of linters we author to ourselves without having to add them to a growing list one-by-one.