diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml new file mode 100644 index 0000000..bfa136e --- /dev/null +++ b/.github/workflows/lints.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - main + pull_request: + +name: Lints + +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check typos + uses: crate-ci/typos@master + with: + config: ./typos.toml diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..05bc10f --- /dev/null +++ b/typos.toml @@ -0,0 +1,10 @@ +[default] +extend-words."LSAT" = "LSAT" + +extend-ignore-re = [ + # spell:disable-line + "(?Rm)^.*(%|#|//)\\s*spell:disable-line$", + + # spell: + "(?s)(%|#|//)\\s*spell:off.*?\\n\\s*(%|#|//)\\s*spell:on", +]