From: Tom de Vries Date: Tue, 1 Apr 2025 13:47:55 +0000 (+0200) Subject: [gdb/contrib] Support gdb in codespell section of setup.cfg X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=387e49def642918ac7cd9ee426eeee43f9986b76;p=thirdparty%2Fbinutils-gdb.git [gdb/contrib] Support gdb in codespell section of setup.cfg Add support for the gdb dir in the codespell section of gdb/contrib/setup.cfg, specifically adding files in the skip line. This allows us to run codespell from the command line on the gdb dir: ... $ codespell --config gdb/contrib/setup.cfg gdb 2>/dev/null | wc -l 1665 ... without running into warnings in generated files. Approved-By: Tom Tromey --- diff --git a/gdb/contrib/setup.cfg b/gdb/contrib/setup.cfg index 71459fe5471..dbff1651f4d 100644 --- a/gdb/contrib/setup.cfg +++ b/gdb/contrib/setup.cfg @@ -1,6 +1,6 @@ [codespell] # Skip ChangeLogs and generated files. -skip = */ChangeLog*,*/configure,gdbsupport/Makefile.in +skip = */ChangeLog*,*/configure,gdbsupport/Makefile.in,*.dat,*.eps,gdb/features/*.c,gdb/ada-casefold.h,gdb/copying.c,gdb/gdbarch-gen.h,gdb/gdbarch-gen.c,gdb/target-delegates-gen.c ignore-words = gdb/contrib/codespell-ignore-words.txt