mirror of
https://github.com/Automattic/harper.git
synced 2025-12-05 19:26:55 -06:00
fix: 15 ExprLinters in lint_group.rs wrongly use insert_struct_rule! (#2249)
This commit is contained in:
@@ -471,7 +471,7 @@ impl LintGroup {
|
||||
insert_expr_rule!(AfterLater, true);
|
||||
insert_expr_rule!(AllIntentsAndPurposes, true);
|
||||
insert_expr_rule!(AllowTo, true);
|
||||
insert_struct_rule!(AmInTheMorning, true);
|
||||
insert_expr_rule!(AmInTheMorning, true);
|
||||
insert_expr_rule!(AmountsFor, true);
|
||||
insert_struct_rule!(AnA, true);
|
||||
insert_expr_rule!(AndIn, true);
|
||||
@@ -505,16 +505,16 @@ impl LintGroup {
|
||||
insert_expr_rule!(DoubleClick, true);
|
||||
insert_expr_rule!(DoubleModal, true);
|
||||
insert_struct_rule!(EllipsisLength, true);
|
||||
insert_struct_rule!(ElsePossessive, true);
|
||||
insert_struct_rule!(Everyday, true);
|
||||
insert_expr_rule!(ElsePossessive, true);
|
||||
insert_expr_rule!(Everyday, true);
|
||||
insert_expr_rule!(ExpandMemoryShorthands, true);
|
||||
insert_expr_rule!(ExpandTimeShorthands, true);
|
||||
insert_expr_rule!(FarBeIt, true);
|
||||
insert_expr_rule!(FeelFell, true);
|
||||
insert_expr_rule!(FewUnitsOfTimeAgo, true);
|
||||
insert_expr_rule!(FillerWords, true);
|
||||
insert_struct_rule!(FirstAidKit, true);
|
||||
insert_struct_rule!(ForNoun, true);
|
||||
insert_expr_rule!(FirstAidKit, true);
|
||||
insert_expr_rule!(ForNoun, true);
|
||||
insert_expr_rule!(FreePredicate, true);
|
||||
insert_expr_rule!(FriendOfMe, true);
|
||||
insert_expr_rule!(GoSoFarAsTo, true);
|
||||
@@ -523,14 +523,14 @@ impl LintGroup {
|
||||
insert_expr_rule!(HelloGreeting, true);
|
||||
insert_expr_rule!(Hereby, true);
|
||||
insert_struct_rule!(HopHope, true);
|
||||
insert_struct_rule!(HowTo, true);
|
||||
insert_expr_rule!(HowTo, true);
|
||||
insert_expr_rule!(HyphenateNumberDay, true);
|
||||
insert_expr_rule!(IAmAgreement, true);
|
||||
insert_expr_rule!(IfWouldve, true);
|
||||
insert_expr_rule!(InterestedIn, true);
|
||||
insert_expr_rule!(ItLooksLikeThat, true);
|
||||
insert_struct_rule!(ItsContraction, true);
|
||||
insert_struct_rule!(ItsPossessive, true);
|
||||
insert_expr_rule!(ItsPossessive, true);
|
||||
insert_expr_rule!(LeftRightHand, true);
|
||||
insert_expr_rule!(LessWorse, true);
|
||||
insert_expr_rule!(LetToDo, true);
|
||||
@@ -550,24 +550,24 @@ impl LintGroup {
|
||||
insert_expr_rule!(MostNumber, true);
|
||||
insert_expr_rule!(MostOfTheTimes, true);
|
||||
insert_expr_rule!(MultipleSequentialPronouns, true);
|
||||
insert_struct_rule!(NailOnTheHead, true);
|
||||
insert_expr_rule!(NailOnTheHead, true);
|
||||
insert_expr_rule!(NeedToNoun, true);
|
||||
insert_struct_rule!(NoFrenchSpaces, true);
|
||||
insert_expr_rule!(NoMatchFor, true);
|
||||
insert_struct_rule!(NoOxfordComma, false);
|
||||
insert_expr_rule!(Nobody, true);
|
||||
insert_struct_rule!(NominalWants, true);
|
||||
insert_expr_rule!(NominalWants, true);
|
||||
insert_expr_rule!(NounCountability, true);
|
||||
insert_struct_rule!(NounVerbConfusion, true);
|
||||
insert_struct_rule!(NumberSuffixCapitalization, true);
|
||||
insert_struct_rule!(OfCourse, true);
|
||||
insert_expr_rule!(OfCourse, true);
|
||||
insert_expr_rule!(OnFloor, true);
|
||||
insert_expr_rule!(OnceOrTwice, true);
|
||||
insert_expr_rule!(OneAndTheSame, true);
|
||||
insert_expr_rule!(OpenCompounds, true);
|
||||
insert_expr_rule!(OpenTheLight, true);
|
||||
insert_struct_rule!(OrthographicConsistency, true);
|
||||
insert_struct_rule!(OughtToBe, true);
|
||||
insert_expr_rule!(OrthographicConsistency, true);
|
||||
insert_expr_rule!(OughtToBe, true);
|
||||
insert_expr_rule!(OutOfDate, true);
|
||||
insert_struct_rule!(OxfordComma, true);
|
||||
insert_expr_rule!(Oxymorons, true);
|
||||
@@ -578,7 +578,7 @@ impl LintGroup {
|
||||
insert_expr_rule!(PronounAre, true);
|
||||
insert_struct_rule!(PronounContraction, true);
|
||||
insert_expr_rule!(PronounInflectionBe, true);
|
||||
insert_struct_rule!(PronounKnew, true);
|
||||
insert_expr_rule!(PronounKnew, true);
|
||||
insert_expr_rule!(QuantifierNeedsOf, true);
|
||||
insert_expr_rule!(QuantifierNumeralConflict, true);
|
||||
insert_expr_rule!(QuiteQuiet, true);
|
||||
@@ -587,7 +587,7 @@ impl LintGroup {
|
||||
insert_struct_rule!(RepeatedWords, true);
|
||||
insert_expr_rule!(RollerSkated, true);
|
||||
insert_expr_rule!(SafeToSave, true);
|
||||
insert_struct_rule!(SaveToSafe, true);
|
||||
insert_expr_rule!(SaveToSafe, true);
|
||||
insert_expr_rule!(SemicolonApostrophe, true);
|
||||
insert_expr_rule!(ShootOneselfInTheFoot, true);
|
||||
insert_expr_rule!(SimplePastToPastParticiple, true);
|
||||
@@ -603,7 +603,7 @@ impl LintGroup {
|
||||
insert_expr_rule!(ThatThan, true);
|
||||
insert_expr_rule!(ThatWhich, true);
|
||||
insert_expr_rule!(TheHowWhy, true);
|
||||
insert_struct_rule!(TheMy, true);
|
||||
insert_expr_rule!(TheMy, true);
|
||||
insert_expr_rule!(ThenThan, true);
|
||||
insert_expr_rule!(Theres, true);
|
||||
insert_expr_rule!(ThesesThese, true);
|
||||
|
||||
Reference in New Issue
Block a user