Spelling Is Next to Godliness

Spelling and grammar are very important. However, when in a rush, we tend to neglect these important aspects. Search engines and humans readers usually don’t appreciate content that includes spelling or grammatical errors.

This notion also applies to your code repository…

As such, let’s automatically spell check and fix our codebase with misspell!

Spell Check

cd my-code-repository/
~/bin/misspell -w .
git commit -am "fixed spelling"
  • -w: Overwrite file with corrections

Note: Be careful with overzealous fixes! You should review the changes before pushing, as:

  • 3rd-party libraries often have many issues
  • Localization files may be incorrectly flagged
  • The package maintainer might not appreciate such a large commit

Examples Pull Requests

Nicholas Nadeau, Ph.D., P.Eng.
Nicholas Nadeau, Ph.D., P.Eng.
Founder / Fractional CTO

Nicholas Nadeau is a fractional CTO empowering startups with next-gen technology expertise, and a passion for driving corporate innovation. Stay informed on cutting-edge hard tech trends - subscribe to my newsletter. Ready to innovate? Discover my services and accelerate your growth.