From e906f79ddc14b5b0ce7809c55df7404bb8a5f3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 18 Dec 2024 03:20:06 +0000 Subject: [PATCH] Improve Typos configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Viktor Szépe --- .cmake-format.yaml | 2 +- .config/typos.toml | 21 ++++++++------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.cmake-format.yaml b/.cmake-format.yaml index 98ab11753a..60b1b46f1e 100644 --- a/.cmake-format.yaml +++ b/.cmake-format.yaml @@ -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 diff --git a/.config/typos.toml b/.config/typos.toml index 1dc44ea0e9..a8ecab921c 100644 --- a/.config/typos.toml +++ b/.config/typos.toml @@ -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] @@ -20,7 +20,7 @@ extend-ignore-re = [ "D4C4DAA4", # sha1.c "Georg Nees", "\\[l\\]ist", # eval.c - "LKE", # test_rax.c + '"LKE"', # test_rax.c ] [type.tcl] @@ -28,26 +28,23 @@ 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] @@ -58,7 +55,6 @@ limite = "limite" pn = "pn" seeked = "seeked" tre = "tre" -ws = "ws" [type.systemd.extend-words] # systemd = .conf @@ -66,5 +62,4 @@ ake = "ake" [type.tcl.extend-words] fo = "fo" -lst = "lst" tre = "tre"