[RFC,1/2] Ignore codespell errors followed by sic marker

Message ID 20260725090226.839799-2-tdevries@suse.de
State New
Headers
Series Require codespell-clean commit messages |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Skipped because it is an RFC
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Skipped because it is an RFC

Commit Message

Tom de Vries July 25, 2026, 9:02 a.m. UTC
  Codespell v2.4.3 introduced off-by-default --ignore-sic, allowing to ignore
intentional typos relatively easily by following them with a sic [1] marker:
'[sic]'.

Enable it, for use in gdb source files and commit messages.

[1] https://en.wikipedia.org/wiki/Sic
---
 gdb/pyproject.toml | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml
index 80a106b7183..011f92e1ac2 100644
--- a/gdb/pyproject.toml
+++ b/gdb/pyproject.toml
@@ -152,3 +152,5 @@  ignore-multiline-regex = 'codespell:ignore-begin.*?codespell:ignore-end'
 # Add 1 (disable warnings about wrong encoding) in addition to the default
 # 2+32 to skip warnings about iso-8859-1 encoded files.
 quiet-level = 35 # 1+2+32
+
+ignore-sic = true