typos.toml

 1[files]
 2ignore-files = true
 3ignore-hidden = false
 4extend-exclude = [
 5    ".git/",
 6    # File suffixes aren't typos
 7    "assets/icons/file_icons/file_types.json",
 8    "crates/extensions_ui/src/extension_suggest.rs",
 9
10    # Some countries codes are flagged as typos.
11    "crates/anthropic/src/supported_countries.rs",
12    "crates/google_ai/src/supported_countries.rs",
13    "crates/open_ai/src/supported_countries.rs",
14
15    # Stripe IDs are flagged as typos.
16    "crates/collab/src/db/tests/processed_stripe_event_tests.rs",
17    # Not our typos
18    "crates/live_kit_server/",
19    # Vim makes heavy use of partial typing tables
20    "crates/vim/",
21    # Editor and file finder rely on partial typing and custom in-string syntax
22    "crates/file_finder/src/file_finder_tests.rs",
23    "crates/editor/src/editor_tests.rs",
24    # Clojure uses .edn filename extension, which is not a misspelling of "end"
25    "extensions/clojure/languages/clojure/config.toml",
26    # There are some names in the test data that are incorrectly flagged as typos.
27    "crates/git/test_data/blame_incremental_complex",
28    "crates/git/test_data/golden/blame_incremental_complex.json",
29    # We have some base64-encoded data that is incorrectly being flagged.
30    "crates/rpc/src/auth.rs",
31    # glsl isn't recognized by this tool
32    "extensions/glsl/languages/glsl/",
33    # Windows likes its abbreviations
34    "crates/gpui/src/platform/windows/",
35    # Some typos in the base mdBook CSS.
36    "docs/theme/css/"
37]
38
39[default]
40extend-ignore-re = [
41    'cl\[ist]',
42    '"ba"',
43    ":ba\\|z",
44    # :/ crates/collab/migrations/20231009181554_add_release_channel_to_rooms.sql
45    "COLUMN enviroment",
46    # Typo in ClickHouse column name.
47    # crates/collab/src/api/events.rs
48    "rename = \"sesssion_id\"",
49    "doas",
50    # ProtoLS crate with tree-sitter Protobuf grammar.
51    "protols"
52]
53check-filename = true