Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: often times → oftentimes (#4594)
Andrew Dunbar6bb9b66196c9
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 8b8252d1d..36c6372d7 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -670,6 +670,13 @@"label": "Nowhere"}},+ {+ "Bool": {+ "name": "Oftentimes",+ "state": true,+ "label": "Oftentimes"+ }+ },{"Bool": {"name": "Overall",diff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rsindex 73ef4c769..367a902dd 100644--- a/harper-core/src/linting/closed_compounds.rs+++ b/harper-core/src/linting/closed_compounds.rs@@ -61,6 +61,7 @@ pub fn lint_group() -> LintGroup {"Nothing" => (&["no thing"][..], "nothing"),"Notwithstanding" => (&["not with standing"][..], "notwithstanding"),"Nowhere" => (&["no where"][..], "nowhere"),+ "Oftentimes" => (&["often times"][..], "oftentimes"),"Overall" => (&["over all"][..], "overall"),"Overclocking" => (&["over clocking"][..], "overclocking"),"Overload" => (&["over load"][..], "overload"),@@ -408,4 +409,13 @@ mod tests {"Yes this is guesswork and we need more evidence of the dangers but at the same time we need evidence of safety.",);}++ #[test]+ fn oftentimes() {+ assert_suggestion_result(+ "the rust compiler is fast, but often times it has to perform a lot of unnecessary checks because crates contain more stuff than needed",+ lint_group(),+ "the rust compiler is fast, but oftentimes it has to perform a lot of unnecessary checks because crates contain more stuff than needed",+ );+ }}