-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
C-featureCategory: feature requestCategory: feature request
Description
Discussed in #14389
Originally posted by GilShoshan94 March 22, 2023
Hi,
Now, we have a code formater with rustfmt
, we have a linter with cargo check
or cargo clippy
, why not a spell checker?
....
Quoted from #14389 (comment)
For spell checker, a significant chunk of the logic indeed belongs to rust-analyzer. Specifically, rust-analyzer should:
separate keywords from identifiers
separate reference identifiers from definition identifiers. Typos should be checked only for definitions. Its compiler's job to point typos in the references.
separate declarations from definitions. Function names should be checked in traits, but not in trait impls.
find comments
unesape strings (values of string literals should be checked for typos, not the source syntax)
peter-lyons-kehl and mikayla-makiPatchMixolydic and jhggAlexdelia
Metadata
Metadata
Assignees
Labels
C-featureCategory: feature requestCategory: feature request