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
typoswithcargo install typos-clior any other way. - Run
typosto detect. - Run
typos -wto 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!