[files]
extend-exclude = [
    "*.rast",
    "bench_data/",
    "crates/parser/test_data/lexer/err/",
    "crates/project-model/test_data/",
]

[default]
extend-ignore-re = [
    # ignore string which contains $0, which is used widely in tests
    ".*\\$0.*",
    # ignore generated content like `boxed....nner()`, `Defaul...efault`
    "\\w*\\.{3,4}\\w*",
    '"flate2"',
    "raison d'être",
    "inout",
    "INOUT",
    "optin",
    "=Pn",
    "\\[[0-9A-F]{4},",  # AstId hex hashes
    # ignore `// spellchecker:off` until `// spellchecker:on`
    "(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
]

[default.extend-words]
anser = "anser"
ba = "ba"
fo = "fo"
ket = "ket"
makro = "makro"
trivias = "trivias"
thir = "thir"
jod = "jod"

[default.extend-identifiers]
anc = "anc"
datas = "datas"
impl_froms = "impl_froms"
selfs = "selfs"
taits = "taits"
