mirror of
https://github.com/curl/curl.git
synced 2026-06-06 17:04:19 +03:00
try typos
This commit is contained in:
parent
fa7694aec7
commit
7029c0a364
2 changed files with 19 additions and 1 deletions
10
.github/scripts/typos.toml
vendored
Normal file
10
.github/scripts/typos.toml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
#
|
||||
# SPDX-License-Identifier: curl
|
||||
|
||||
[default]
|
||||
extend-ignore-identifiers-re = [
|
||||
"(Fo|fo|FU|ba|BA|pn|OT|ND|PN|HELO|helo|UE|inex|parms|clen|couter|unexpect|admi|optin|ttests|ein|ths)",
|
||||
"(dout|ser|Jod|Iy|ben|URE|Typ|typ|wrk|bck|PASE|htpt|CNA|ECT|anc|parm|Nam|stati|Ned|EDE|edn|nin|ue|alue)",
|
||||
"(Januar|perfec|varius|PUNICODE|passin|CLEA|Passiv|HEADE|TEMPLAT|MEK|PARM|numer|nto|noo|kno)",
|
||||
]
|
||||
10
.github/workflows/checksrc.yml
vendored
10
.github/workflows/checksrc.yml
vendored
|
|
@ -66,8 +66,9 @@ jobs:
|
|||
python3-typing-extensions python3-libcst python3-impacket \
|
||||
python3-websockets python3-pytest python3-filelock python3-pytest-xdist
|
||||
python3 -m pip install --break-system-packages cmakelang==0.6.13 pytype==2024.10.11 ruff==0.11.9 codespell==2.4.1
|
||||
cargo install typos-cli
|
||||
|
||||
- name: 'spellcheck'
|
||||
- name: 'codespell'
|
||||
run: |
|
||||
codespell --version
|
||||
codespell \
|
||||
|
|
@ -78,6 +79,13 @@ jobs:
|
|||
--skip '*/test*,*/THANKS,*/spellcheck.words,packages/*' \
|
||||
$(git ls-files)
|
||||
|
||||
- name: 'typos'
|
||||
run: |
|
||||
typos --version
|
||||
git ls-files | \
|
||||
grep -v -E '(codespell-ignore\.txt|spellcheck\.words|/wcurl|CIPHERS-TLS12\.md|/THANKS)' | \
|
||||
typos --file-list - --config .github/scripts/typos.toml
|
||||
|
||||
- name: 'cmakelint'
|
||||
run: scripts/cmakelint.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue