]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/contrib] Add codespell:ignore-begin/ignore-end (disabled)
authorTom de Vries <tdevries@suse.de>
Sat, 26 Apr 2025 07:49:49 +0000 (09:49 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 26 Apr 2025 07:49:49 +0000 (09:49 +0200)
commit8f9b303e68d1e5b48b253b0a215ef7761422fb8a
tree5c09a08e19868ae2e660f86f644aafd2de44d065
parent4c68809bd3c2ac97989e143ec47a29c19c88d86c
[gdb/contrib] Add codespell:ignore-begin/ignore-end (disabled)

It would be useful to tell codespell to ignore blocks of code.

A feature ignore-multiline-regex exists, which can be used to implement this:
...
$ codespell --ignore-multiline-regex \
    'codespell:ignore-begin.*codespell:ignore-end'
...

Unfortunately there's a bug in codespell where using -w in
combination with --ignore-multiline-regex drops all newlines in the updated
file.

In absence of a fix, commit this solution disabled, to locally document the
current state of this feature.
gdb/contrib/setup.cfg