From d3e48b202bba17451e55b8b0767c551245c7ca83 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 8 Aug 2023 09:16:01 +0200 Subject: [PATCH] fix(cli): Allow ot and stap in sh --- crates/typos-cli/src/file_type_specifics.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/typos-cli/src/file_type_specifics.rs b/crates/typos-cli/src/file_type_specifics.rs index e5c00af..273a250 100644 --- a/crates/typos-cli/src/file_type_specifics.rs +++ b/crates/typos-cli/src/file_type_specifics.rs @@ -45,6 +45,16 @@ pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[ ], }, ), + ( + "sh", + StaticDictConfig { + ignore_idents: &[ + "ot", // the test command from GNU coreutils supports an -ot argument (see https://www.gnu.org/software/coreutils/manual/html_node/File-characteristic-tests.html) + "stap", // command from SystemTap (see https://sourceware.org/systemtap/man/stap.1.html) + ], + ignore_words: &[], + }, + ), ( "vim", StaticDictConfig {