Repository navigation
handle nested terminal if/else in return_linter() - #2362
Merged
Merged
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2362 +/- ##
==========================================
- Coverage 99.11% 99.09% -0.02%
==========================================
Files 125 125
Lines 5650 5658 +8
==========================================
+ Hits 5600 5607 +7
- Misses 50 51 +1 ☔ View full report in Codecov by Sentry. |
Collaborator
Author
|
I was also a bit worried about performance -- would overhead to recursing in R push us to pursue this as pure XPath? I am satisfied with the R-recursion approach -- timing is not meaningfully different (faster, if anything) & should be much more readable. I linted all base R packages as a stress test: setwd("src/library")
f = list.files()
f = f[file.exists(file.path(f, "DESCRIPTION"))]
lint_all = \(pkgs, linters) for (pkg in pkgs) lint_package(pkg, linters = linters)
# 'old' = current main, 'new' = current this PR
system.time(lint_all(f, old_explicit))
# user system elapsed
# 72.638 1.162 74.112
system.time(lint_all(f, old_implicit))
# user system elapsed
# 66.546 0.819 67.682
system.time(lint_all(f, new_explicit))
# user system elapsed
# 72.178 1.058 73.604
system.time(lint_all(f, new_implicit))
# user system elapsed
# 62.563 0.871 63.674 |
AshesITR
reviewed
Nov 28, 2023
AshesITR
approved these changes
Dec 4, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2354, Closes #2356
NEWS is missing, but I'll put it into the expanded item for #2321 (depending on which is merged first)