Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: like a plague→like the plague
hippietrail22afae6f64d8
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex a6520139b..e6bc9b865 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -1008,6 +1008,12 @@ pub fn lint_group() -> LintGroup {"`Suffice it to say` is more standard and more common variant.","Corrects `suffice to say` to `suffice it to say`."),+ "LikeThePlague" => (+ ["like a plague"],+ ["like the plague"],+ "`Things are avoided `like the plague` not `like a plague`.",+ "Corrects `like a plague` to `like the plague`."+ ),});group.set_all_rules_to(Some(true));@@ -2029,4 +2035,13 @@ mod tests {"Build flutter releases in github actions for production only android for a while.",);}++ #[test]+ fn correct_like_a_plague() {+ assert_suggestion_result(+ "Below is the worst example of them all (avoid such coding like a plague):",+ lint_group(),+ "Below is the worst example of them all (avoid such coding like the plague):",+ );+ }}