You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new lint: `only_used_in_recursion`
changelog:
- added `only_used_in_recursion`.
- fixed code that variables are only used in recursion.
- this would not lint when `unused_variable`
Issue: #8390
new lint: `only_used_in_recursion`
changed:
- added `only_used_in_recursion`.
- fixed code that variables are only used in recursion.
- this would not lint when `unused_variable`
This fixes: #8390
-----
changelog: add lint [`only_used_in_recursion`]
Uh oh!
There was an error while loading. Please reload this page.
What it does
Arguments that are used only in recursion to itself.
Since it is used, the warning
unused_variables
does not come out, but it is useless.Lint Name
only_used_in_recursion
Category
perf
Advantage
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: