Skip to content

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

feat(core): add rule for #790

Elijah Potter6b985d51068f
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index d8cbb5c04..4ef9a9035 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -364,6 +364,12 @@ pub fn lint_group() -> LintGroup {
["last but not least"],
"Use the more idiomatic phrasing.",
"Corrects common errors in the phrase `last but not least`."
+ ),
+ "BlanketStatement" => (
+ ["blanketed statement"],
+ ["blanket statement"],
+ "Use the more idiomatic phrasing.",
+ "Corrects common errors in the phrase `blanket statement`."
)
});
@@ -533,4 +539,13 @@ mod tests {
"Last but not least, with VS2013 you can use Web Essentials 2013",
);
}
+
+ #[test]
+ fn issue_790() {
+ assert_suggestion_result(
+ "This seems like a blanketed statement and I have not found any info to back up whether PyJWT is affected.",
+ lint_group(),
+ "This seems like a blanket statement and I have not found any info to back up whether PyJWT is affected.",
+ );
+ }
}