Skip to content

Commit aeca94d

Browse files
committed
fix(core): remove problematic MootPoint rule
1 parent e058a1a commit aeca94d

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

harper-core/src/linting/lint_group.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use super::multiple_sequential_pronouns::MultipleSequentialPronouns;
1818
use super::number_suffix_capitalization::NumberSuffixCapitalization;
1919
use super::phrase_corrections::{
2020
AndAlike, BadRap, BatedBreath, BeckAndCall, ChangeTack, EnMasse, HumanLife, HungerPang,
21-
LetAlone, LoAndBehold, MootPoint, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
21+
LetAlone, LoAndBehold, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
2222
ThatChallenged, TurnItOff,
2323
};
2424
use super::plural_conjugate::PluralConjugate;
@@ -215,7 +215,6 @@ create_lint_group_config!(
215215
EnMasse => true,
216216
LetAlone => true,
217217
LoAndBehold => true,
218-
MootPoint => true,
219218
SneakingSuspicion => true,
220219
SupposeTo => true
221220
);

harper-core/src/linting/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub use oxford_comma::OxfordComma;
6565
pub use pattern_linter::PatternLinter;
6666
pub use phrase_corrections::{
6767
AndAlike, BadRap, BatedBreath, BeckAndCall, ChangeTack, EnMasse, HumanLife, HungerPang,
68-
LetAlone, LoAndBehold, MootPoint, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
68+
LetAlone, LoAndBehold, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
6969
ThatChallenged, TurnItOff,
7070
};
7171
pub use plural_conjugate::PluralConjugate;

harper-core/src/linting/phrase_corrections.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ create_linter_for_phrase!(HungerPang, "hunger pang", 3);
8282
create_linter_for_phrase!(EnMasse, "en masse", 1);
8383
create_linter_for_phrase!(LetAlone, "let alone", 1);
8484
create_linter_for_phrase!(LoAndBehold, "lo and behold", 2);
85-
create_linter_for_phrase!(MootPoint, "moot point", 3);
8685
create_linter_for_phrase!(SneakingSuspicion, "sneaking suspicion", 3);
8786
create_linter_for_phrase!(SupposeTo, "suppose to", 1);
8887

@@ -91,8 +90,8 @@ mod tests {
9190
use crate::linting::tests::{assert_lint_count, assert_suggestion_result};
9291

9392
use super::{
94-
BadRap, BatedBreath, ChangeTack, EnMasse, HungerPang, LetAlone, LoAndBehold, MootPoint,
95-
OfCourse, SneakingSuspicion, SupposeTo, TurnItOff,
93+
BadRap, BatedBreath, ChangeTack, EnMasse, HungerPang, LetAlone, LoAndBehold, OfCourse,
94+
SneakingSuspicion, SupposeTo, TurnItOff,
9695
};
9796

9897
#[test]
@@ -173,11 +172,6 @@ mod tests {
173172
assert_suggestion_result("long and behold", LoAndBehold::default(), "lo and behold");
174173
}
175174

176-
#[test]
177-
fn mute_point() {
178-
assert_suggestion_result("mute point", MootPoint::default(), "moot point");
179-
}
180-
181175
#[test]
182176
fn sneaky_suspicion() {
183177
assert_suggestion_result(

0 commit comments

Comments
 (0)