Skip to content

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

fix: missed has went→has gone

hippietrail1552ba4371cf
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index b35fb831e..e8390bba0 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -1032,6 +1032,12 @@ pub fn lint_group() -> LintGroup {
"`Having gone` is the correct form.",
"Corrects `having went` to `having gone`."
),
+ "HasGone" => (
+ ["has went"],
+ ["has gone"],
+ "`Has gone` is the correct form.",
+ "Corrects `has went` to `has gone`."
+ ),
});
group.set_all_rules_to(Some(true));
@@ -2089,4 +2095,13 @@ mod tests {
"Having gone through the setup guidelines and picking react starter, running npm run watch results in an error",
);
}
+
+ #[test]
+ fn correct_has_went() {
+ assert_suggestion_result(
+ "I would like to report that the package request which you are loading has went into maintenance mode.",
+ lint_group(),
+ "I would like to report that the package request which you are loading has gone into maintenance mode.",
+ );
+ }
}