-
-
Notifications
You must be signed in to change notification settings - Fork 964
refactor(lint): refactor NoParametersOnlyUsedInRecursion #7970
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
Merged
dyc3
merged 26 commits into
biomejs:main
from
matanshavit:refactor/no-parameters-only-used-in-recursion
Nov 12, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
31caa89
remove unneeded comment
matanshavit 1e573dd
use AnyFunctionLike to detect functions
matanshavit 9007804
use ancestors().skip(1) to simplify logic
matanshavit dc460fa
remove Option from TokenText for is_recursive_call
matanshavit 32d99f5
import Reference from biome_js_semantic
matanshavit 5aa577b
correct location of direct parameter reference comment
matanshavit 4c92b3b
remove Option from TokenText for is_recursive_call_with_param_usage
matanshavit 3e6056b
use try operator for function_name
matanshavit c392c64
remove unneeded allocation by using allReferences
matanshavit a52af39
replace Bool return types with Option(Bool)
matanshavit ae360b4
docstrings
matanshavit 3c16f5d
use .kind() instead of cast_ref
matanshavit d837268
use Option(Bool) for is_recursive_call return type
matanshavit 0a5bcd7
use text_timmed to compare to function name
matanshavit 7f83211
compare TokenText directly instead of strings
matanshavit db6c4a3
check all ancestors for recursive calls
matanshavit f74784b
[autofix.ci] apply automated fixes
autofix-ci[bot] 6feac11
consistent conditions in woklist loop
matanshavit 88e34cb
lint; remove redudndant `continue`
matanshavit 962d38c
[autofix.ci] apply automated fixes
autofix-ci[bot] ec80486
Update crates/biome_js_analyze/src/lint/nursery/no_parameters_only_us…
ematipico ed9cf16
Handle malformed subexpressions gracefully in noParametersOnlyUsedInR…
matanshavit 14b9851
fix linting
matanshavit 02a75fd
add changeset for rule refactor
matanshavit ba76f06
Delete .changeset/flat-results-happen.md
ematipico f15e426
Merge branch 'main' of github.com:biomejs/biome into refactor/no-para…
matanshavit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.