Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: don't flag "equivalent of a"
hippietrailec42c91e2ea1
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rsindex 1b98c00e0..323fd9bf2 100644--- a/harper-core/src/linting/adjective_of_a.rs+++ b/harper-core/src/linting/adjective_of_a.rs@@ -9,6 +9,7 @@ const FALSE_POSITIVES: &[&str] = &[// Different valid constructions."all","emblematic",+ "equivalent","full","inside",// "more" is tricky but it often seems correct and idiomatic.@@ -438,4 +439,13 @@ mod tests {0,)}++ #[test]+ fn dont_flag_equivalent() {+ assert_lint_count(+ "Rust's equivalent of a switch statement is a match expression",+ AdjectiveOfA,+ 0,+ );+ }}