Apply Jarl fixes - #150
Open
khammami wants to merge 3 commits into
Open
Conversation
Contributor
Author
|
Please run I refactored some assignments in tests as |
khammami
marked this pull request as ready for review
June 8, 2026 09:38
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.
this PR fixes #149
Most fixes were applied by
jarl(default rules)jarl check . --fixSummary (GH Copilot)
Code simplification and consistency:
x[!(x == "")]with the simpler and more idiomaticx[x != ""]for removing empty strings in multiple R scripts, includingadd_badge.R,add_renv.R,add_vignette.R,get_all_dependencies.R,get_minimal_r_version.R, and utility functions inutils-deps.R. [1] [2] [3] [4] [5] [6] [7] [8]Test refactoring and clarity:
Refactors tests to separate assignment and assertion steps, e.g., splitting
expect_null(x <- foo())intox <- foo(); expect_null(x), and similarly for other assertions. This affects many test files, improving readability and debuggability. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24]Updates test logic to use
!any(grepl(...))instead ofall(!grepl(...))for improved clarity and intent in pattern matching assertions. [1] [2]Utility function improvements:
resolve_project_metaby usinganyNA()instead ofany(is.na(...))and by replacingany(!(x %in% y))with!all(x %in% y), making the logic more idiomatic and robust.These changes do not affect the core logic or output of the functions but improve code readability, maintainability, and test clarity.