Skip to content

Commit

Permalink
Add typos command for linting and tidying and fix issues it found
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed May 18, 2024
1 parent 04c5c10 commit 73ad03d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ be stripped either.
## Caching Rust Compilation Output

You can use the [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) action with this one
seemlessly, whether or not a specific build target needs `cross`. There is no special configuration
seamlessly, whether or not a specific build target needs `cross`. There is no special configuration
that you need for this. It just works.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ runs:
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
if: ${{ steps.determine-cross-compile.outputs.needs-cross == 'true' }}
# We need to accesss this in both this YAML config and shell scripts. It
# We need to access this in both this YAML config and shell scripts. It
# doesn't seem like using ${{ env.RUNNER_TEMP }} works in the YAML config.
- name: Set directory for installing cross
id: set-cross-dir
Expand Down
11 changes: 11 additions & 0 deletions precious.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
exclude = [
"target",
"tests/lib/**/*",
]

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

[commands.perltidy]
type = "both"
include = [ "**/*.{pl,pm,t,psgi}" ]
Expand Down

0 comments on commit 73ad03d

Please sign in to comment.