From dcb0177d96224bf8e86b1d147e9f5893528503cb Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 16 Nov 2023 11:04:07 -0500 Subject: [PATCH] Ignore URLs and few other specific things, group better in regex --- .codespellrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.codespellrc b/.codespellrc index 23b12a0b..235c994f 100644 --- a/.codespellrc +++ b/.codespellrc @@ -4,7 +4,8 @@ skip = .git,*.pdf,*.svg,venv,.codespellrc,THANKS,*test*.log,logs check-hidden = true # Ignore all acronyms etc as plenty e.g. in fail2ban/server/strptime.py # Try to identify incomplete words which are part of a regex, hence having [] at the beginning -ignore-regex = \b[A-Z][A-Z][A-Z]+|\[[a-zA-Z]+\][a-z]+\b +# Ignore all urls as something with :// in it +ignore-regex = (\b([A-Z][A-Z][A-Z]+|\[[a-zA-Z]+\][a-z]+|gir\.st)\b)|[a-z]+://\S+ # some oddly named variables, some names, etc # wee -- comes in regex etc for weeks -ignore-words-list = theis,timere,alls,wee,wight +ignore-words-list = theis,timere,alls,wee,wight,ans