]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make gdb/guile codespell-clean
authorTom Tromey <tom@tromey.com>
Thu, 3 Apr 2025 18:11:15 +0000 (12:11 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 Apr 2025 03:05:12 +0000 (21:05 -0600)
This cleans up the last codespell reports in the Guile directory and
adds gdb/guile to pre-commit.

It also tells codespell to ignore URLs.  I think this is warranted
because many URLs don't really contain words per se; and furthermore
if any URL-checking is needed at all, it would be for liveness and not
spelling.

Also I was wondering why the codespell config is in contrib and not
gdb/setup.cfg.

Approved-By: Tom de Vries <tdevries@suse.de>
.pre-commit-config.yaml
gdb/contrib/setup.cfg
gdb/guile/scm-value.c

index 27eaea059856fc2cd60978c8ca6daefec783c2a3..488e7812f94b7ae29641b48b1667d8992d2818f1 100644 (file)
@@ -69,7 +69,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))/'
+      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile))/'
       args: [--config, gdb/contrib/setup.cfg]
   - repo: local
     hooks:
index dbff1651f4dc075573c0b4bafb5373263ef6db83..670a85064e2f4dbfe40e3b97e3608cf7dabcd92f 100644 (file)
@@ -4,3 +4,6 @@
 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
+
+# Ignore all URLs.
+uri-ignore-words-list = *
index 0f4a6a46da0e82471971a6721580f600512abb46..88132e0e16804558c4969613a027328a057006ec 100644 (file)
@@ -604,7 +604,7 @@ gdbscm_value_dynamic_type (SCM self)
        type = value_rtti_type (value, NULL, NULL, NULL);
       else
        {
-         /* Re-use object's static type.  */
+         /* Reuse object's static type.  */
          type = NULL;
        }
     }