Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/oxc_linter/src/rules/oxc/only_used_in_recursion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ declare_oxc_lint!(
///
/// Checks for arguments that are only used in recursion with no side-effects.
///
/// Inspired by https://rust-lang.github.io/rust-clippy/master/#/only_used_in_recursion
/// Inspired by [the `only_used_in_recursion` rule in Clippy](https://rust-lang.github.io/rust-clippy/master/#only_used_in_recursion).
///
/// ### Why is this bad?
///
/// Supplying an argument that is only used in recursive calls is likely a mistake.
///
/// It increase cognitive complexity and may impact performance.
/// It increases cognitive complexity and may impact performance.
///
/// ### Examples
///
/// Examples of **incorrect** code for this rule:
/// ```ts
/// function test(only_used_in_recursion) {
/// return test(only_used_in_recursion);
/// function test(onlyUsedInRecursion) {
/// return test(onlyUsedInRecursion);
/// }
/// ```
///
Expand Down
Loading