25 lines
865 B
TOML
25 lines
865 B
TOML
|
# TODO this is too painful with commented-out code, but commented-out code is a code smell of its own
|
|||
|
#dev_comments = true
|
|||
|
|
|||
|
[Hunspell]
|
|||
|
# TODO setting config overrides defaults <https://github.com/drahnr/cargo-spellcheck/issues/293#issuecomment-2397728638> #ecosystem/cargo-spellcheck #dev #severity/low
|
|||
|
use_builtin = true
|
|||
|
|
|||
|
# Use built-in dictionary only, for reproducibility.
|
|||
|
skip_os_lookups = true
|
|||
|
|
|||
|
search_dirs = ["."]
|
|||
|
extra_dictionaries = ["hunspell.dict"]
|
|||
|
|
|||
|
# TODO "C++" is tokenized wrong <https://github.com/drahnr/cargo-spellcheck/issues/272> #ecosystem/cargo-spellcheck #dev #severity/low
|
|||
|
tokenization_splitchars = "\",;:!?#(){}[]|/_-‒+='`&@§¶…"
|
|||
|
|
|||
|
[Hunspell.quirks]
|
|||
|
transform_regex = [
|
|||
|
# 2025Q1 style references to dates.
|
|||
|
"^(20\\d\\d)Q([1234])$",
|
|||
|
|
|||
|
# version numbers; tokenization splits off everything at the dot so be conservative
|
|||
|
"^v[012]$",
|
|||
|
]
|