feat(ci): add a codespell linting action (#4482)
* feat(ci): add a codespell linting action
* fix(ci): run this job if the lint workflow is changed
* ci(codespell): add configuration file
* ci(codespell): exclude mermaid.min.js
* fix: wrong mermaid.min.js location
* ci(codespell): Sur from "Big Sur" is being considered as misspelled
* ci(codespell): make warning the max level
This won't restrict PRs from merging
* ci(codespell): lint on every push
* test: create a misspelling
* Revert "test: create a misspelling"
This reverts commit a2c91cda1e
.
This commit is contained in:
parent
a6aa4398f4
commit
0e2831dfb1
|
@ -0,0 +1,3 @@
|
|||
[codespell]
|
||||
ignore-words-list=crate,Sur
|
||||
exclude-file=book/mermaid.min.js
|
|
@ -33,6 +33,7 @@ jobs:
|
|||
**/Cargo.lock
|
||||
clippy.toml
|
||||
.cargo/config.toml
|
||||
.github/workflows/lint.yml
|
||||
|
||||
- name: Workflow files
|
||||
id: changed-files-workflows
|
||||
|
@ -118,3 +119,13 @@ jobs:
|
|||
with:
|
||||
level: warning
|
||||
fail_on_error: false
|
||||
|
||||
codespell:
|
||||
runs-on: ubuntu-latest
|
||||
needs: changed-files
|
||||
steps:
|
||||
- uses: actions/checkout@v3.0.2
|
||||
- uses: plettich/action-codespell@master
|
||||
with:
|
||||
github_token: ${{ secrets.github_token }}
|
||||
level: warning
|
||||
|
|
Loading…
Reference in New Issue