Typos in code and comments can be annoying. But they don’t have to be, with typos it is super easy to introduce automated typos checking (and fixing).

Easy steps to get rid of typos. Once and for all.

  1. Install typos with cargo install typos-cli or any other way.
  2. Run typos to detect.
  3. Run typos -w to fix.
  4. ???
  5. PROFIT!

Maybe add a Github Action:

name: ...
on: [pull_request]

jobs:
  ...
  typos:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: crate-ci/typos@v1.16.23
        with:
          files: .

That’s all folks!