From c3c854dc759fe0c5549aa0a730be9e259243edb6 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 29 Mar 2024 14:37:24 -0400 Subject: [PATCH] codespell: Ignore the THANKS file and debbugs.gnu.org URL This way "codespell -i 0" is silent. This is the first commit from https://github.com/tukaani-project/xz/pull/93 with trivial edits by Lasse Collin. (cherry picked from commit 81efe6119f86e3274e512c9eca5ec22b2196c2b3) --- .codespellrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index b2c11346..4118a4f8 100644 --- a/.codespellrc +++ b/.codespellrc @@ -3,7 +3,8 @@ # Skip all translation files and a few other autogenerated files. # The autotool files should have their typos fixed in the upstream, but # until then we will blacklist them here. -skip = *.po,*.pot,./po4a/man,./doc/api,./configure,./autom4te.cache,./m4/libtool.m4,./build-aux/depcomp,./build-aux/ltmain.sh,./build-aux/config.guess,./build-aux/config.rpath,./m4/po.m4,./build-aux/config.sub +# THANKS contains names, some do trigger codespell. +skip = *.po,*.pot,./po4a/man,./doc/api,./configure,./autom4te.cache,./m4/libtool.m4,./build-aux/depcomp,./build-aux/ltmain.sh,./build-aux/config.guess,./build-aux/config.rpath,./m4/po.m4,./build-aux/config.sub,THANKS # Ignore false positive matching words. Ideally codespell would allow # ignoring words for specific files, but that does not appear to be @@ -22,3 +23,6 @@ builtin = clear,rare,informal,usage,names # Always default to highest interactive level to avoid accidentally # changing a false positive or picking the wrong replacement. interactive = 3 + +# Ignore a URL with debbugs. +ignore-regex = \bhttps://debbugs\.gnu\.org\b