spelling
Spelling in every text file, with a reason for each allowed word. Guide: Spelling.
Selected when
Section titled “Selected when”Always.
Checks
Section titled “Checks”Finds misspelled words in code, comments, and documentation.
Runs at the commit stage.
A typo in an identifier spreads to every caller; in prose it costs the reader a second look.
What to do
Section titled “What to do”Fix the spelling, or write the real name and its reason in the spelling.allowed_words setting.
Example
Section titled “Example”Correct a misspelled word, and for a file name, rename the file and update each reference to it.
Turn it off
Section titled “Turn it off”gspot ignore spelling/typos --paths "<path>" --reason "<why>"Settings
Section titled “Settings”| Setting | What it sets |
|---|---|
spelling.locale |
The English locale typos checks against: en accepts every dialect; en-us, en-gb, en-ca, and en-au report the spellings of the other dialects. The fixer never changes a dialect spelling. |
spelling.allowed_words |
Words the spelling checks accept beyond the shipped spelling list, each with the reason it is a real word. A scope adds its words to the root words. |
Tools and versions
Section titled “Tools and versions”| Tool | Version |
|---|---|
| typos | 1.51.1 |
Files gspot writes
Section titled “Files gspot writes”.gspot/configurations/spelling/typos.toml