diff options
author | Viktor Szépe <viktor@szepe.net> | 2024-05-04 17:00:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 15:00:44 +0000 |
commit | 8eefb7313e23cad630ff86747a258c94bbfa19f4 (patch) | |
tree | 4ee13b3fb6ff999454473ad0c01205096ec38d1e /typos.toml | |
parent | 3ae6fe2114ac2d0b8f70a99017a67da104c3c2e2 (diff) |
Minimize future false positive typos (#12751)
# Description
Make typos config more strict: ignore false positives where they occur.
1. Ignore only files with typos
2. Add regexp-s with context
3. Ignore variable names only in Rust code
4. Ignore only 1 "identifier"
5. Check dot files
🎁 Extra bonus: fix typos!!
Diffstat (limited to 'typos.toml')
-rw-r--r-- | typos.toml | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/typos.toml b/typos.toml index a8c81542e..92fecd5cb 100644 --- a/typos.toml +++ b/typos.toml @@ -1,17 +1,27 @@ [files] -extend-exclude = ["crates/nu-command/tests/commands/table.rs", "*.tsv", "*.json", "*.txt", "tests/fixtures/formats/*"] +extend-exclude = [ + ".git/", + "crates/nu-cmd-extra/assets/228_themes.json", + "tests/fixtures/formats/", +] +ignore-hidden = false -[default.extend-words] -# Ignore false-positives +[default] +extend-ignore-re = [ + "Plasticos Rival", + "│ in_custom_valu │", + "│ ine │", + ":es\\|ful\\(", + "\\\\u\\{e7ba\\}", + "([0-9a-f][0-9a-f] ){4}", + "--find ba\\b", + "0x\\[ba be\\]", + "\\)BaR'", +] + +[type.rust.extend-words] nd = "nd" -pn = "pn" -fo = "fo" -ful = "ful" -ons = "ons" -ba = "ba" -Plasticos = "Plasticos" -IIF = "IIF" numer = "numer" + +[default.extend-identifiers] ratatui = "ratatui" -doas = "doas" -wheres = "wheres" |