From bbd6f18afb9bf6a3c19ee79a0648b50e4147fe80 Mon Sep 17 00:00:00 2001 From: Aditya Manthramurthy Date: Tue, 11 Mar 2025 08:44:54 -0700 Subject: [PATCH] Update typos config (#21018) --- .typos.toml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.typos.toml b/.typos.toml index 087c2b9c3..a5b06a509 100644 --- a/.typos.toml +++ b/.typos.toml @@ -1,11 +1,5 @@ [files] -extend-exclude = [ - ".git/", - "docs/", - "CREDITS", - "go.mod", - "go.sum", -] +extend-exclude = [".git/", "docs/", "CREDITS", "go.mod", "go.sum"] ignore-hidden = false [default] @@ -40,3 +34,11 @@ extend-ignore-re = [ "TestGetPartialObjectMisAligned" = "TestGetPartialObjectMisAligned" "thr" = "thr" "toi" = "toi" + +[type.go] +extend-ignore-identifiers-re = [ + # Variants of `typ` used to mean `type` in golang as it is otherwise a + # keyword - some of these (like typ1 -> type1) can be fixed, but probably + # not worth the effort. + "[tT]yp[0-9]*", +]