aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-04-03 15:56:49 +0200
committerTom de Vries <tdevries@suse.de>2025-04-03 15:56:49 +0200
commit0326df1b9b1f69886dfd0d4d4aba739db5bdbd65 (patch)
treea3a306ad18e9611853bc121a981bc8457b3e3692
parentabf215a338f2e2afdea78d629cd049a3e59348b8 (diff)
downloadbinutils-0326df1b9b1f69886dfd0d4d4aba739db5bdbd65.zip
binutils-0326df1b9b1f69886dfd0d4d4aba739db5bdbd65.tar.gz
binutils-0326df1b9b1f69886dfd0d4d4aba739db5bdbd65.tar.bz2
[pre-commit] Add codespell-clean gdb subdirs
As an alternative to adding the gdb dir to codespell while it's still not codespell-clean [1], add gdb subdirs which are codespell-clean. Found using: ... $ for d in $(find gdb -maxdepth 1 -type d | egrep -v "testsuite|gdb$"); do \ echo -n "$d: "; \ codespell --config gdb/contrib/setup.cfg $d 2>/dev/null \ | wc -l; \ done 2>&1 \ | grep ": 0" gdb/tui: 0 gdb/target: 0 gdb/data-directory: 0 gdb/po: 0 gdb/system-gdbinit: 0 gdb/mi: 0 gdb/syscalls: 0 gdb/arch: 0 gdb/regformats: 0 gdb/compile: 0 ... Verified using: ... $ pre-commit run codespell --all-files codespell................................................................Passed ... Approved-By: Tom Tromey <tom@tromey.com> [1] https://sourceware.org/pipermail/gdb-patches/2025-March/216781.html
-rw-r--r--.pre-commit-config.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 88288e0..2a7aaa7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -69,7 +69,7 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
- files: '^(gdbsupport|gdbserver)/'
+ files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile))/'
args: [--config, gdb/contrib/setup.cfg]
- repo: local
hooks: