Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSpell checking #2508
Comments
This comment has been minimized.
This comment has been minimized.
|
Please make this opt-in. The "Add backticks here" lint is already annoying enough. |
This comment has been minimized.
This comment has been minimized.
|
I think that once this lint works properly it should be opt-out, but in any case some lints being annoying to some people is something that should be solved by #1313 |
This comment has been minimized.
This comment has been minimized.
|
Spell checking is hard. Especially with identifiers. If I turn on a spell checker on my code I get squiggly lines everywhere for stuff like |
This comment has been minimized.
This comment has been minimized.
|
@oli-obk I think one should start with spell checking documentation comments. If a word is incorrectly typed in a comment, we can then check whether its an identifier in the code, and not emit a diagnostic. But spelling errors in documentation comments are annoying. Spell checking identifiers should be done with great care, and probably will remain opt-in forever. Some people prefer |
This comment has been minimized.
This comment has been minimized.
|
Well we can skip text in backticks. And since one should be placing identifiers in backticks, they aren't linted in doc comments. |
oli-obk
added
E-medium
T-AST
L-documentation
labels
Mar 6, 2018
This comment has been minimized.
This comment has been minimized.
|
I think that spelling isn't a huge issue considering how variable typos are compile errors, rather than runtime errors. Sure, I'd have loved this for the times when I was developing in PHP and didn't notice the difference between For docs, it might be useful, but it should ignore items in backticks. |
gnzlbg commentedMar 5, 2018
It would be nice if clippy could be able to spell-check comments, identifiers, ...
Previous work here: https://github.com/huonw/spellck