]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/contrib] Support gdb in codespell section of setup.cfg
authorTom de Vries <tdevries@suse.de>
Tue, 1 Apr 2025 13:47:55 +0000 (15:47 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 1 Apr 2025 13:47:55 +0000 (15:47 +0200)
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 <tom@tromey.com>
gdb/contrib/setup.cfg

index 71459fe54712d2696b61acabc93b1d109f533902..dbff1651f4dc075573c0b4bafb5373263ef6db83 100644 (file)
@@ -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