use typos to check typos

This commit is contained in:
ulic-youthlic 2025-05-25 14:04:21 +08:00
parent 8d9f566ce6
commit f3de1c79e4
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
7 changed files with 44 additions and 22 deletions

21
.typos.toml Normal file
View file

@ -0,0 +1,21 @@
[files]
ignore-global = true
ignore-parent = true
ignore-hidden = false
ignore-files = true
ignore-vcs = true
extend-exclude = ["secrets/", ".git/", "public-key.txt"]
[default]
check-filename = true
check-file = true
unicode = true
extend-ignore-re = [
# Line ignore with trailling `(#|//) spellchecker: disable-line`
"(?Rm)^.*(#|//)\\s*spellchecker: disable-line$",
# Line block with `# spellchecker: <on|off>`
"(?s)(#|//)\\s*spellchecker: off.*?\\n\\s*(#|//)\\s*spellchecker: on",
]
extend-ignore-identifiers-re = ["als", "Paket", "ConfiguratioN", "StructurE"]
[default.extend-identifiers]