Skip to content

spelling

Spelling in every text file, with a reason for each allowed word. Guide: Spelling.

Always.

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.

Fix the spelling, or write the real name and its reason in the spelling.allowed_words setting.

Correct a misspelled word, and for a file name, rename the file and update each reference to it.

gspot ignore spelling/typos --paths "<path>" --reason "<why>"
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.
Tool Version
typos 1.51.1

.gspot/configurations/spelling/typos.toml