mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-13 00:16:21 +08:00
Add codespell lang checker
This commit is contained in:
parent
3917bda8fb
commit
7db0c17bec
2 changed files with 31 additions and 0 deletions
6
.codespellrc
Normal file
6
.codespellrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
[codespell]
|
||||
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
|
||||
skip = .git*,.codespellrc
|
||||
check-hidden = true
|
||||
# ignore-regex =
|
||||
# ignore-words-list =
|
25
.github/workflows/codespell.yaml
vendored
Normal file
25
.github/workflows/codespell.yaml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Codespell configuration is within .codespellrc
|
||||
---
|
||||
name: Codespell
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Annotate locations with typos
|
||||
uses: codespell-project/codespell-problem-matcher@v1
|
||||
- name: Codespell
|
||||
uses: codespell-project/actions-codespell@v2
|
Loading…
Add table
Reference in a new issue