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
The perfectionist dylint library was upgraded to 0.0.0-rc.21 (branch claude/perfectionist-rc21-upgrade-9rfgpq). That release ships a new active-by-default rule, perfectionist::bare_identifier_reference, which flags a backticked identifier in a doc comment that resolves in scope and suggests turning it into an intra-doc link (`Foo` → [`Foo`]).
At the default reference_scope = "crate" and min_words = 1 it fired ~416 times across the workspace — a large, churny set of doc-comment edits.
Decision
For the upgrade PR the rule is narrowed in dylint.toml to the highest-signal cases, and the residual flagged links are fixed:
["perfectionist::bare_identifier_reference"]
reference_scope = "own_module"# only names resolving in the documenting item's own modulemin_words = 2# skip single-word names like `Config`, `Host`
Follow-up (this issue)
Widen the scope back toward the rule's defaults as a separate pass:
Relax reference_scope (e.g. to module_tree or crate) and/or lower min_words back to 1 in dylint.toml.
Add the resulting intra-doc links (cargo dylint --fix applies the MachineApplicable suggestions; review the diff).
Watch the interaction with clap_help_markdown: in clap-derived doc comments an intra-doc link leaks into --help, so those comments want the backticks removed, not linked. Keep the widening to non-clap doc comments, or fix the clap ones by stripping instead.
Activity
KSXGitHub commentedon Jun 29, 2026
bare_identifier_referenceonce its autofix is fixed pnpm#12722chore(rust/dylint): upgrade perfectionist to 0.0.0-rc.22 and re-enabl…
KSXGitHub commentedon Jun 29, 2026
chore(rust/dylint): upgrade perfectionist 0.0.0-rc.22 (#12719)
bare_identifier_referenceonce its autofix is fixed pnpm#12722