[Bug build/34285] New: [gdb] Codespell granularity
"vries at gcc dot gnu.org via Gdb-prs" <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.discuss |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=34285
Bug ID: 34285
Summary: [gdb] Codespell granularity
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
Initially, codespell had two levels of granularity:
- global:
- ignore words (gdb/contrib/codespell-ignore-words.txt)
- rewrite words (gdb/contrib/codespell-dictionary.txt)
- line:
- ignore line (codespell:ignore)
- ignore words in line (codespell:ignore <word1> ...)
- as codespell:ignore, but for next line: codespell:ignore-next-line
Now we have the possibility to ignore multiple lines:
...
# How to ignore blocks of code.
ignore-multiline-regex = 'codespell:ignore-begin.*?codespell:ignore-end'
...
But there's no possibility yet to:
- ignore a specific word in a number of lines
(
https://github.com/codespell-project/codespell/issues/3381#issuecomment-2479046896
), or
- activate a certain dictionary for/in specific files.
Consequently we:
- put architecture-specific abbreviations (like SME) in the global ignore list,
and
- sometimes entirely ignore large blocks of code, rather than just a particular
word (like SCOND in gdb/arc-linux-tdep.c).
We'll need to file an upstream issue for the dictionary thing, I didn't find
and open issue for that.
--
You are receiving this mail because:
You are on the CC list for the bug.