From e7a4e8ad25264184cd95d8bab94de97343c0b4c9 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 27 Aug 2026 14:07:38 -0500 Subject: [PATCH] fix(dict): Don't correct the HashiCorp brand name Fixes #1606 --- crates/typos-cli/src/dict.rs | 1 + crates/typos-cli/tests/cmd/false-positives.toml | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/typos-cli/src/dict.rs b/crates/typos-cli/src/dict.rs index 040be863..bb540ca2 100644 --- a/crates/typos-cli/src/dict.rs +++ b/crates/typos-cli/src/dict.rs @@ -55,6 +55,7 @@ impl BuiltIn { match ident { "O_WRONLY" => Some(Status::Valid), "dBA" => Some(Status::Valid), + "HashiCorp" => Some(Status::Valid), _ => None, } } diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml index 70fec010..324f41d7 100644 --- a/crates/typos-cli/tests/cmd/false-positives.toml +++ b/crates/typos-cli/tests/cmd/false-positives.toml @@ -1,11 +1,4 @@ bin.name = "typos" stdin = "" -stdout = """ -error: `Hashi` should be `Hash` - ╭▸ ./README.md:11:17 - │ -11 │ Some talk about HashiCorp - ╰╴ ━━━━━ -""" +stdout = "" stderr = "" -status.code = 2