Skip to content

Commit

Permalink
Improve Typos configuration (#1456)
Browse files Browse the repository at this point in the history
- remove old ignores
- fix a "new" typo 🎁

Signed-off-by: Viktor Szépe <[email protected]>
  • Loading branch information
szepeviktor authored Jan 8, 2025
1 parent 9e02049 commit 418f1d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .cmake-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ format:
_help_require_valid_layout:
- By default, if cmake-format cannot successfully fit
- everything into the desired linewidth it will apply the
- last, most agressive attempt that it made. If this flag is
- last, most aggressive attempt that it made. If this flag is
- True, however, cmake-format will print error, exit with non-
- zero status code, and write-out nothing
require_valid_layout: false
Expand Down
21 changes: 8 additions & 13 deletions .config/typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

[files]
extend-exclude = [
".git/",
"deps/",
# crc16_slottable is primarily pre-generated random strings.
"src/crc16_slottable.h",
]
ignore-hidden = false

[default.extend-words]
advices = "advices"
exat = "exat"
optin = "optin"
ro = "ro"
smove = "smove"

[type.c]
Expand All @@ -20,34 +20,31 @@ extend-ignore-re = [
"D4C4DAA4", # sha1.c
"Georg Nees",
"\\[l\\]ist", # eval.c
"LKE", # test_rax.c
'"LKE"', # test_rax.c
]

[type.tcl]
extend-ignore-re = [
"DUMPed",
]

[type.sv.extend-identifiers]
# sv = .h
module_gil_acquring = "module_gil_acquring"

[type.c.extend-identifiers]
ang = "ang"
advices = "advices"
clen = "clen"
fle = "fle"
module_gil_acquring = "module_gil_acquring"
nd = "nd"
ot = "ot"

[type.tcl.extend-identifiers]
fo = "fo"
oll = "oll"
stressers = "stressers"

[type.sv.extend-words]
[type.sv.extend-identifiers]
# sv = .h
fo = "fo"

[type.sv.extend-words]
# sv = .h
seeked = "seeked"

[type.c.extend-words]
Expand All @@ -58,13 +55,11 @@ limite = "limite"
pn = "pn"
seeked = "seeked"
tre = "tre"
ws = "ws"

[type.systemd.extend-words]
# systemd = .conf
ake = "ake"

[type.tcl.extend-words]
fo = "fo"
lst = "lst"
tre = "tre"

0 comments on commit 418f1d0

Please sign in to comment.