-
-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(linter): improve recursive argument handling and diagnostics…
… creation (#6513) ### Overview This PR refactors `only-used-in-recursion` codebase to make the implementation of #5530 easier. The diff isn't displaying cleanly, so it might be better to review it commit by commit when looking at the changes. ### Key changes 1. Extracted diagnostic logic into `craete_diagnostic` function: 3bf0015 2. Removed redundant check in `is_function_maybe_reassigned`: a133ec6 3. Simplified `is_argument_only_used_in_recursion` by removing nesting: 6e6bd04
- Loading branch information
Showing
1 changed file
with
133 additions
and
113 deletions.
There are no files selected for viewing
This file contains 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