Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

chore: ignore "shy" false positive

hippietrailff1a7d3128b2
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rs
index bbe61a5db..9b81072e8 100644
--- a/harper-core/src/linting/adjective_of_a.rs
+++ b/harper-core/src/linting/adjective_of_a.rs
@@ -12,11 +12,11 @@ const FALSE_POSITIVES: &[&str] = &[
"equivalent",
"full",
"inside",
- "up",
- // "more" is tricky but it often seems correct and idiomatic.
"more",
"much",
"out",
+ "shy",
+ "up",
// The word is used more as a noun in this context.
// (using .kind.is_likely_homograph() here is too strict)
"back",
@@ -478,4 +478,13 @@ mod tests {
0,
);
}
+
+ #[test]
+ fn dont_flag_shy() {
+ assert_lint_count(
+ "... or just shy of a third of the country's total trade deficit.",
+ AdjectiveOfA,
+ 0,
+ );
+ }
}