Skip to content

Commit e058a1a

Browse files
committed
feat(core): expose new rules
1 parent 4e95bc6 commit e058a1a

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

harper-core/src/linting/lint_group.rs

+16-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ use super::merge_words::MergeWords;
1717
use super::multiple_sequential_pronouns::MultipleSequentialPronouns;
1818
use super::number_suffix_capitalization::NumberSuffixCapitalization;
1919
use super::phrase_corrections::{
20-
HumanLife, NeedHelp, NoLonger, OfCourse, ThatChallenged, TurnItOff,
20+
AndAlike, BadRap, BatedBreath, BeckAndCall, ChangeTack, EnMasse, HumanLife, HungerPang,
21+
LetAlone, LoAndBehold, MootPoint, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
22+
ThatChallenged, TurnItOff,
2123
};
2224
use super::plural_conjugate::PluralConjugate;
2325
use super::pronoun_contraction::PronounContraction;
@@ -203,7 +205,19 @@ create_lint_group_config!(
203205
NoLonger => true,
204206
ThatChallenged => true,
205207
TurnItOff => true,
206-
OfCourse => true
208+
OfCourse => true,
209+
AndAlike => true,
210+
BadRap => true,
211+
BatedBreath => true,
212+
BeckAndCall => true,
213+
ChangeTack => true,
214+
HungerPang => true,
215+
EnMasse => true,
216+
LetAlone => true,
217+
LoAndBehold => true,
218+
MootPoint => true,
219+
SneakingSuspicion => true,
220+
SupposeTo => true
207221
);
208222

209223
impl<T: Dictionary + Default> Default for LintGroup<T> {

harper-core/src/linting/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ pub use multiple_sequential_pronouns::MultipleSequentialPronouns;
6363
pub use number_suffix_capitalization::NumberSuffixCapitalization;
6464
pub use oxford_comma::OxfordComma;
6565
pub use pattern_linter::PatternLinter;
66-
pub use phrase_corrections::{HumanLife, NeedHelp, NoLonger, OfCourse, ThatChallenged, TurnItOff};
66+
pub use phrase_corrections::{
67+
AndAlike, BadRap, BatedBreath, BeckAndCall, ChangeTack, EnMasse, HumanLife, HungerPang,
68+
LetAlone, LoAndBehold, MootPoint, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
69+
ThatChallenged, TurnItOff,
70+
};
6771
pub use plural_conjugate::PluralConjugate;
6872
pub use pronoun_contraction::PronounContraction;
6973
pub use proper_noun_capitalization_linters::{

0 commit comments

Comments
 (0)