Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: "sufficient enough" → "sufficient" or "enough" (#4750)
Andrew Dunbar6342d046d8a7
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 5e010ff73..31e70d1e3 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -3445,6 +3445,13 @@"label": "Starving"}},+ {+ "Bool": {+ "name": "SufficientEnough",+ "state": true,+ "label": "Sufficient Enough"+ }+ },{"Bool": {"name": "TheAllThe",diff --git a/harper-core/src/linting/weir_rules/SufficientEnough.weir b/harper-core/src/linting/weir_rules/SufficientEnough.weirnew file mode 100644index 000000000..3d8972261--- /dev/null+++ b/harper-core/src/linting/weir_rules/SufficientEnough.weir@@ -0,0 +1,9 @@+expr main (sufficient enough)++let message "Use `sufficient` or `enough` alone instead of redundant `sufficient enough`."+let description "Corrects redundant `sufficient enough` to either `sufficient` or `enough`."+let kind "Redundancy"+let becomes ["sufficient", "enough"]++test "Padium and Pone Sauce, got off with a small fine in time served, meaning the time they spent in jail awaiting trial was deemed sufficient enough by the judge." "Padium and Pone Sauce, got off with a small fine in time served, meaning the time they spent in jail awaiting trial was deemed sufficient by the judge."+test "Cannot locate handler error message is not sufficient enough" "Cannot locate handler error message is not enough"