Skip to content

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

fix: false positive "made up of a"

hippietrailcf055b7a5c58
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rs
index 5dd08ed93..28154315c 100644
--- a/harper-core/src/linting/adjective_of_a.rs
+++ b/harper-core/src/linting/adjective_of_a.rs
@@ -12,6 +12,7 @@ const FALSE_POSITIVES: &[&str] = &[
"equivalent",
"full",
"inside",
+ "up",
// "more" is tricky but it often seems correct and idiomatic.
"more",
"much",
@@ -458,4 +459,13 @@ mod tests {
0,
);
}
+
+ #[test]
+ fn dont_flag_up() {
+ assert_lint_count(
+ "Yeah gas is made up of a bunch of teenytiny particles all moving around.",
+ AdjectiveOfA,
+ 0,
+ );
+ }
}