Skip to content

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

chore(core): fix imports

Elijah Potterd8c3dc69dfa9
diff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rs
index 6529f916f..25d2f5279 100644
--- a/harper-core/src/linting/lint_group.rs
+++ b/harper-core/src/linting/lint_group.rs
@@ -5,34 +5,12 @@ use super::an_a::AnA;
use super::avoid_curses::AvoidCurses;
use super::boring_words::BoringWords;
use super::capitalize_personal_pronouns::CapitalizePersonalPronouns;
-use super::closed_compounds::Altogether;
-use super::closed_compounds::Asleep;
-use super::closed_compounds::However;
-use super::closed_compounds::Intact;
-use super::closed_compounds::Itself;
-use super::closed_compounds::Likewise;
-use super::closed_compounds::Misunderstand;
-use super::closed_compounds::Misunderstood;
-use super::closed_compounds::Misuse;
-use super::closed_compounds::Misused;
-use super::closed_compounds::Myself;
-use super::closed_compounds::Overall;
-use super::closed_compounds::Postpone;
-use super::closed_compounds::Somehow;
-use super::closed_compounds::Therefore;
-use super::closed_compounds::Thumbnail;
-use super::closed_compounds::Tonight;
-use super::closed_compounds::Upset;
-use super::closed_compounds::Worldwide;
-use super::compound_words::Bathroom;
-use super::compound_words::Facewash;
-use super::compound_words::Handheld;
-use super::compound_words::Northeast;
-use super::compound_words::Northeastern;
-use super::compound_words::Playground;
-use super::compound_words::Proofread;
-use super::compound_words::Runway;
-use super::compound_words::Upholstery;
+use super::closed_compounds::{
+ Altogether, Asleep, Bathroom, Facewash, Handheld, However, Intact, Itself, Likewise,
+ Misunderstand, Misunderstood, Misuse, Misused, Myself, Northeast, Northeastern, Overall,
+ Playground, Postpone, Proofread, Runway, Somehow, Therefore, Thumbnail, Tonight, Upholstery,
+ Upset, Worldwide,
+};
use super::correct_number_suffix::CorrectNumberSuffix;
use super::despite_of::DespiteOf;
use super::dot_initialisms::DotInitialisms;
diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rs
index 94b2c7e14..1e5cf63c7 100644
--- a/harper-core/src/linting/mod.rs
+++ b/harper-core/src/linting/mod.rs
@@ -42,39 +42,19 @@ mod terminating_conjunctions;
mod that_which;
mod unclosed_quotes;
mod use_genitive;
+mod whereas;
mod wrong_quotes;
pub use an_a::AnA;
pub use avoid_curses::AvoidCurses;
pub use boring_words::BoringWords;
pub use capitalize_personal_pronouns::CapitalizePersonalPronouns;
-pub use closed_compounds::Altogether;
-pub use closed_compounds::Asleep;
-pub use closed_compounds::However;
-pub use closed_compounds::Intact;
-pub use closed_compounds::Likewise;
-pub use closed_compounds::Misunderstand;
-pub use closed_compounds::Misunderstood;
-pub use closed_compounds::Misuse;
-pub use closed_compounds::Misused;
-pub use closed_compounds::Myself;
-pub use closed_compounds::Overall;
-pub use closed_compounds::Postpone;
-pub use closed_compounds::Somehow;
-pub use closed_compounds::Therefore;
-pub use closed_compounds::Thumbnail;
-pub use closed_compounds::Tonight;
-pub use closed_compounds::Upset;
-pub use closed_compounds::Worldwide;
-pub use compound_words::Bathroom;
-pub use compound_words::Facewash;
-pub use compound_words::Handheld;
-pub use compound_words::Northeast;
-pub use compound_words::Northeastern;
-pub use compound_words::Playground;
-pub use compound_words::Proofread;
-pub use compound_words::Runway;
-pub use compound_words::Upholstery;
+pub use closed_compounds::{
+ Altogether, Asleep, Bathroom, Facewash, Handheld, However, Intact, Itself, Likewise,
+ Misunderstand, Misunderstood, Misuse, Misused, Myself, Northeast, Northeastern, Overall,
+ Playground, Postpone, Proofread, Runway, Somehow, Therefore, Thumbnail, Tonight, Upholstery,
+ Upset, Worldwide,
+};
pub use correct_number_suffix::CorrectNumberSuffix;
pub use currency_placement::CurrencyPlacement;
pub use despite_of::DespiteOf;
@@ -115,6 +95,7 @@ pub use terminating_conjunctions::TerminatingConjunctions;
pub use that_which::ThatWhich;
pub use unclosed_quotes::UnclosedQuotes;
pub use use_genitive::UseGenitive;
+pub use whereas::Whereas;
pub use wrong_quotes::WrongQuotes;
use crate::Document;
@@ -195,5 +176,3 @@ mod tests {
assert_lint_count(&transformed_str, linter, 0);
}
}
-pub use whereas::Whereas;
-mod whereas;