Skip to content

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

Merge branch 'master' into infinite-lint-loops

Elijah Potterb94d3b719315
diff --cc harper-core/src/linting/pronoun_contraction/avoid_contraction.rs
index b521ca8de,546c6f740..073cf22ac
--- a/harper-core/src/linting/pronoun_contraction/avoid_contraction.rs
+++ b/harper-core/src/linting/pronoun_contraction/avoid_contraction.rs
@@@ -40,6 -41,31 +41,6 @@@ impl PatternLinter for AvoidContractio
}
fn description(&self) -> &'static str {
- "This rule looks for situations where a contraction was used where it shouldn't."
+ "This rule looks for situations where a contraction was used where it shouldn't have been."
}
}
-
-#[cfg(test)]
-mod tests {
- use crate::linting::tests::assert_suggestion_result;
-
- use super::AvoidContraction;
-
- #[test]
- fn issue_139() {
- assert_suggestion_result(
- "it would be great if you're PR was merged into tower-lsp",
- AvoidContraction::default(),
- "it would be great if your PR was merged into tower-lsp",
- );
- }
-
- #[test]
- fn car() {
- assert_suggestion_result(
- "You're car is black.",
- AvoidContraction::default(),
- "Your car is black.",
- );
- }
-}