Get rid of typos with typos
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.
- Install
typos
withcargo install typos-cli
or any other way. - Run
typos
to detect. - Run
typos -w
to fix. - ???
- 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!