typos.toml

 1[files]
 2ignore-files = true
 3ignore-hidden = false
 4extend-exclude = [
 5    ".git/",
 6
 7    # Contributor names aren't typos.
 8    ".mailmap",
 9
10    # File suffixes aren't typos.
11    "crates/theme/src/icon_theme.rs",
12    "crates/extensions_ui/src/extension_suggest.rs",
13
14    # Some mock data is flagged as typos.
15    "crates/assistant_tools/src/web_search_tool.rs",
16
17    # Suppress false positives in database schema.
18    "crates/collab/migrations/20251208000000_test_schema.sql",
19
20    # Not our typos.
21    "crates/livekit_api/",
22    # Vim makes heavy use of partial typing tables.
23    "crates/vim/",
24    # Editor and file finder rely on partial typing and custom in-string syntax.
25    "crates/file_finder/src/file_finder_tests.rs",
26    "crates/editor/src/editor_tests.rs",
27    # There are some names in the test data that are incorrectly flagged as typos.
28    "crates/git/test_data/blame_incremental_complex",
29    "crates/git/test_data/golden/blame_incremental_complex.json",
30    # We have some base64-encoded data that is incorrectly being flagged.
31    "crates/rpc/src/auth.rs",
32    # glsl isn't recognized by this tool.
33    "extensions/glsl/languages/glsl/",
34    # Windows likes its abbreviations.
35    "crates/gpui/src/platform/windows/directx_renderer.rs",
36    "crates/gpui/src/platform/windows/events.rs",
37    "crates/gpui/src/platform/windows/direct_write.rs",
38    "crates/gpui/src/platform/windows/window.rs",
39    # Some typos in the base mdBook CSS.
40    "docs/theme/css/",
41    # Spellcheck triggers on `|Fixe[sd]|` regex part.
42    "script/danger/dangerfile.ts",
43    # Eval examples for prompts and criteria
44    "crates/eval/src/examples/",
45    # File type extensions are not typos
46    "crates/zed/resources/windows/zed.iss",
47    # typos-cli doesn't understand our `vˇariable` markup
48    "crates/editor/src/hover_links.rs",
49    # typos-cli doesn't understand `setis` is intentional test case
50    "crates/editor/src/code_completion_tests.rs",
51    # Linux repository structure is not a valid text, hence we should not check it for typos
52    "crates/project_panel/benches/linux_repo_snapshot.txt",
53    # Some multibuffer test cases have word fragments that register as typos
54    "crates/multi_buffer/src/multi_buffer_tests.rs",
55    # Macos apis
56    "crates/gpui/src/platform/mac/dispatcher.rs",
57]
58
59[default]
60extend-ignore-re = [
61    'cl\[ist]',
62    '\[lan\]guage',
63    '"ba"',
64    "doas",
65    # ProtoLS crate with tree-sitter Protobuf grammar.
66    "protols",
67    # x11rb SelectionNotifyEvent struct field
68    "requestor",
69    # macOS version
70    "Big Sur",
71    # Not an actual typo but an intentionally invalid color, in `color_extractor`
72    "#fof",
73    # Stripped version of reserved keyword `type`
74    "typ",
75    # AMD GPU Services
76    "ags",
77    # AMD GPU Services
78    "AGS"
79]
80check-filename = true