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    "crates/editor/src/edit_prediction_tests.rs",
28    # There are some names in the test data that are incorrectly flagged as typos.
29    "crates/git/test_data/blame_incremental_complex",
30    "crates/git/test_data/golden/blame_incremental_complex.json",
31    # We have some base64-encoded data that is incorrectly being flagged.
32    "crates/rpc/src/auth.rs",
33    # glsl isn't recognized by this tool.
34    "extensions/glsl/languages/glsl/",
35    # Protols is the name of the language server.
36    "extensions/proto/extension.toml",
37    "extensions/proto/src/language_servers/protols.rs",
38    # Windows likes its abbreviations.
39    "crates/gpui_windows/src/directx_renderer.rs",
40    "crates/gpui_windows/src/events.rs",
41    "crates/gpui_windows/src/direct_write.rs",
42    "crates/gpui_windows/src/window.rs",
43    # Some typos in the base mdBook CSS.
44    "docs/theme/css/",
45    # Spellcheck triggers on `|Fixe[sd]|` regex part.
46    "script/danger/dangerfile.ts",
47    # Eval examples for prompts and criteria
48    "crates/eval/src/examples/",
49    # File type extensions are not typos
50    "crates/zed/resources/windows/zed.iss",
51    # typos-cli doesn't understand our `vˇariable` markup
52    "crates/editor/src/hover_links.rs",
53    # typos-cli doesn't understand `setis` is intentional test case
54    "crates/editor/src/code_completion_tests.rs",
55    # Linux repository structure is not a valid text, hence we should not check it for typos
56    "crates/project_panel/benches/linux_repo_snapshot.txt",
57    # Some multibuffer test cases have word fragments that register as typos
58    "crates/multi_buffer/src/multi_buffer_tests.rs",
59    # Macos apis
60    "crates/gpui_macos/src/dispatcher.rs",
61    # Tests contain partially incomplete words (by design)
62    "crates/edit_prediction_cli/src/split_commit.rs",
63    # Eval examples contain intentionally partial words (e.g. "secur" for "secure")
64    "crates/edit_prediction_cli/evals/",
65    # Tests contain `baˇr` that cause `"ba" should be "by" or "be".`-like false-positives
66    "crates/editor/src/document_symbols.rs",
67]
68
69[default]
70extend-ignore-re = [
71    # PNG is a file format, not a typo
72    "PNG",
73    'cl\[ist]',
74    '\[lan\]guage',
75    '"ba"',
76    "doas",
77    # ProtoLS crate with tree-sitter Protobuf grammar.
78    "protols",
79    # x11rb SelectionNotifyEvent struct field
80    "requestor",
81    # macOS version
82    "Big Sur",
83    # Not an actual typo but an intentionally invalid color, in `color_extractor`
84    "#fof",
85    # Stripped version of reserved keyword `type`
86    "typ",
87    # AMD GPU Services
88    "ags",
89    # AMD GPU Services
90    "AGS"
91]
92check-filename = true