Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: "it damages the environment" (#3149)
Andrew Dunbar224a8f4fc300
diff --git a/harper-core/src/linting/damages.rs b/harper-core/src/linting/damages.rsindex cc71076bc..eb8b05d9e 100644--- a/harper-core/src/linting/damages.rs+++ b/harper-core/src/linting/damages.rs@@ -93,7 +93,10 @@ impl ExprLinter for Damages {can = CanPrecede::Noun;}- if prev_word.kind.is_auxiliary_verb() {+ if prev_word.kind.is_auxiliary_verb()+ || (prev_word.kind.is_subject_pronoun()+ && prev_word.kind.is_third_person_singular_pronoun())+ {can = if can == CanPrecede::Noun {CanPrecede::EitherNounOrVerb} else {@@ -297,4 +300,12 @@ mod tests {Damages::default(),);}++ // Issues reported on GitHub or Discord++ // https://discord.com/channels/1335035237213671495/1491949288060751952/1491949288060751952+ #[test]+ fn ignore_it_damages_the_environment() {+ assert_no_lints("it damages the environment", Damages::default());+ }}