To prevent typos from flagging specific patterns, use regex-based ignore keys in the [default] section:
extend-ignore-re: Matches uncorrectable sections (like specific comment patterns or code blocks).extend-ignore-identifiers-re: Matches patterns for always-valid identifiers.extend-ignore-words-re: Matches patterns for always-valid words. Note: You must handle case insensitivity yourself in the regex.
Run with --type-list to see available file type names for custom configuration.
[default]
extend-ignore-re = [
# Ignore lines that end with `# spellchecker:disable-line`
"(?Rm)^.*(#|//)\s*spellchecker:disable-line$",
# Ignore the line after `# spellchecker:ignore-next-line`:
"(#|//)\s*spellchecker:ignore-next-line\n.*",
# Ignore blocks between `# spellchecker:off` and `# spellchecker:on`
"(?s)(#|//)\s*spellchecker:off.*?\n\s*(#|//)\s*spellchecker:on",
]
extend-ignore-identifiers-re = [
# Ignore identifiers that look like SSL cipher suites:
"\\bTLS_[A-Z0-9_]+(_anon_[A-Z0-9_]+)?\\b",
]
extend-ignore-words-re = [
# words with length <= 4 chars is likely noise
"^[a-zA-Z]{1,4}$",
]