Skip to content

spelling/typos

Finds misspelled words in code, comments, and documentation.

Part of the spelling configuration, at the recommended level. It runs at the commit stage, per file. It runs typos. gspot check --fix fixes what it can.

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 root allowed_words setting.

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

Turn it off for some files, or one of its lint rules, with a reason:

gspot ignore spelling/typos --paths "<glob>" --reason "<why>"
gspot ignore spelling/typos --rule <rule> --reason "<why>"