Skip to content

Commit

Permalink
Add typos command to linting
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed May 11, 2024
1 parent 239f21b commit 750562b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[default.extend-words]
ue = "ue"
dows = "dows"

1 change: 1 addition & 0 deletions dev/bin/install-dev-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function install_tools() {
run "ubi --project houseabsolute/omegasort --in ~/bin"
run "ubi --project koalaman/shellcheck --in ~/bin"
run "ubi --project mvdan/sh --in ~/bin --exe shfmt"
run "ubi --project crate-ci/typos --in ~/bin"
run "npm install [email protected]"
}

Expand Down
8 changes: 8 additions & 0 deletions precious.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,11 @@ tidy_flags = "--write"
ok_exit_codes = 0
lint_failure_exit_codes = 1

[commands.typos]
type = "lint"
include = "**/*"
exclude = "**/*.tar.gz"
cmd = "typos"
invoke = "once"
ok-exit-codes = 0
lint-failure-exit-codes = 2

0 comments on commit 750562b

Please sign in to comment.