]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Add codespell-clean gdb/testsuite dirs
authorTom de Vries <tdevries@suse.de>
Tue, 20 May 2025 09:05:54 +0000 (11:05 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 20 May 2025 09:05:54 +0000 (11:05 +0200)
The following gdb/testsuite subdirs are codespell-clean:
...
$ for d in gdb/testsuite/gdb.*; do \
      echo -n "$d:"; \
      codespell --config ./gdb/contrib/setup.cfg $d \
          | wc -l; \
  done 2>&1 \
  | grep :0
gdb/testsuite/gdb.ctf:0
gdb/testsuite/gdb.dap:0
gdb/testsuite/gdb.gdb:0
gdb/testsuite/gdb.go:0
gdb/testsuite/gdb.modula2:0
gdb/testsuite/gdb.objc:0
gdb/testsuite/gdb.opencl:0
gdb/testsuite/gdb.perf:0
gdb/testsuite/gdb.replay:0
gdb/testsuite/gdb.server:0
gdb/testsuite/gdb.testsuite:0
...

Add them to the pre-commit configuration.

Approved-By: Tom Tromey <tom@tromey.com>
.pre-commit-config.yaml

index 7cb7008f2df7ea8407ac681cd4330f1e9b9e87e1..a71f7eb62f240161fe5af43f64319464cfc95a4c 100644 (file)
@@ -70,7 +70,7 @@ repos:
     rev: v2.4.1
     hooks:
     - id: codespell
-      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli))/'
+      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|modula2|objc|opencl|perf|replay|server|testsuite)))/'
       args: [--config, gdb/contrib/setup.cfg]
   - repo: local
     hooks: