x/tools/gopls: check spelling of identifiers in declarations #71160
Labels
gopls/analysis
Issues related to running analysis in gopls
gopls
Issues related to the Go language server, gopls.
Milestone
It would be nice if gopls could reliably point out misspellings in declarations (but not in references, where it is just a nuisance), while being aware of Go conventions for capitalization, word breaking, and local project naming conventions. An analyzer seems like the easiest integration. (Semantic tokens doesn't have a "misspelled" modifier, nor the means to suggest a fix.)
One way to do this is to develop something from scratch, but I bet there are spell checkers out there that we could reuse. The tricky part will be to define a loosely coupled interface to avoid x/tools from having to add a dependency on them.
The text was updated successfully, but these errors were encountered: