From 9d6414b0ccbe6de71cef1eab4dc30fd9a5d871ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 27 Jan 2024 17:03:25 +0100 Subject: [PATCH] Fix typos configuration (#6877) - check hidden files - fix a typos in a hidden file - ignore "ba" typos in a more specific way - ignore a typo in collab/migrations/ literally Release Notes: - N/A --- .github/ISSUE_TEMPLATE/config.yml | 2 +- typos.toml | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index b5ea0d47fa..2c6cc0b0ea 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -5,6 +5,6 @@ contact_links: - name: Platform Support url: https://github.com/zed-industries/zed/issues/5391 about: A quick note on platform support - - name: Postive Feedback + - name: Positive Feedback url: https://github.com/zed-industries/zed/discussions/5397 about: A central location for kind words about Zed diff --git a/typos.toml b/typos.toml index 851dfc2d8e..1f2349adbd 100644 --- a/typos.toml +++ b/typos.toml @@ -1,21 +1,26 @@ [files] ignore-files = true +ignore-hidden = false extend-exclude = [ + ".git/", # glsl isn't recognized by this tool - "crates/zed/src/languages/glsl/*", + "crates/zed/src/languages/glsl/", # File suffixes aren't typos "assets/icons/file_icons/file_types.json", # Not our typos - "crates/live_kit_server/*", + "crates/live_kit_server/", # Vim makes heavy use of partial typing tables - "crates/vim/*", + "crates/vim/", # Editor and file finder rely on partial typing and custom in-string syntax "crates/file_finder/src/file_finder_tests.rs", "crates/editor/src/editor_tests.rs", - # :/ - "crates/collab/migrations/20231009181554_add_release_channel_to_rooms.sql", ] [default] -extend-ignore-re = ["ba"] +extend-ignore-re = [ + '"ba"', + ":ba\\|z", + # :/ crates/collab/migrations/20231009181554_add_release_channel_to_rooms.sql + "ADD COLUMN enviroment TEXT", +] check-filename = true