|
1 | 1 | mod flat_config; |
2 | 2 | mod structured_config; |
3 | 3 |
|
4 | | -use std::collections::BTreeMap; |
5 | | -use std::hash::BuildHasher; |
6 | | -use std::num::NonZero; |
7 | | -use std::sync::Arc; |
| 4 | +use std::{collections::BTreeMap, hash::BuildHasher, num::NonZero, sync::Arc}; |
8 | 5 |
|
9 | | -use foldhash::quality::RandomState; |
10 | | -use hashbrown::HashMap; |
11 | | -use lru::LruCache; |
| 6 | +use {foldhash::quality::RandomState, hashbrown::HashMap, lru::LruCache}; |
12 | 7 |
|
| 8 | +// Individual Linters |
13 | 9 | use super::a_part::APart; |
14 | 10 | use super::a_some_time::ASomeTime; |
15 | 11 | use super::a_ways_to_go::AWaysToGo; |
@@ -88,7 +84,6 @@ use super::except_of::ExceptOf; |
88 | 84 | use super::expand_memory_shorthands::ExpandMemoryShorthands; |
89 | 85 | use super::expand_people::ExpandPeople; |
90 | 86 | use super::expand_time_shorthands::ExpandTimeShorthands; |
91 | | -use super::expr_linter::run_on_chunk; |
92 | 87 | use super::fall_below::FallBelow; |
93 | 88 | use super::far_be_it::FarBeIt; |
94 | 89 | use super::fascinated_by::FascinatedBy; |
@@ -214,7 +209,6 @@ use super::pronoun_contraction::PronounContraction; |
214 | 209 | use super::pronoun_inflection_be::PronounInflectionBe; |
215 | 210 | use super::pronoun_knew::PronounKnew; |
216 | 211 | use super::pronoun_verb_agreement::PronounVerbAgreement; |
217 | | -use super::proper_noun_capitalization_linters; |
218 | 212 | use super::quantifier_needs_of::QuantifierNeedsOf; |
219 | 213 | use super::quantifier_numeral_conflict::QuantifierNumeralConflict; |
220 | 214 | use super::quite_quiet::QuiteQuiet; |
@@ -307,15 +301,23 @@ use super::worth_to_do::WorthToDo; |
307 | 301 | use super::would_never_have::WouldNeverHave; |
308 | 302 | use super::wrong_apostrophe::WrongApostrophe; |
309 | 303 |
|
310 | | -use super::{ExprLinter, Lint}; |
311 | | -use super::{HtmlDescriptionLinter, Linter}; |
312 | | -use crate::linting::dashes::Dashes; |
313 | | -use crate::linting::expr_linter::{Chunk, Sentence}; |
314 | | -use crate::linting::{ |
315 | | - be_adjective_confusions, closed_compounds, initialisms, phrase_set_corrections, weir_rules, |
| 304 | +// Modules that create multiple linters each |
| 305 | +use super::be_adjective_confusions; |
| 306 | +use super::closed_compounds; |
| 307 | +use super::initialisms; |
| 308 | +use super::phrase_set_corrections; |
| 309 | +use super::proper_noun_capitalization_linters; |
| 310 | +use super::weir_rules; |
| 311 | + |
| 312 | +use crate::{ |
| 313 | + linting::{ |
| 314 | + dashes::Dashes, |
| 315 | + expr_linter::{Chunk, Sentence, run_on_chunk}, |
| 316 | + {ExprLinter, HtmlDescriptionLinter, Lint, Linter}, |
| 317 | + }, |
| 318 | + spell::Dictionary, |
| 319 | + {Dialect, Document, Lrc, TokenStringExt}, |
316 | 320 | }; |
317 | | -use crate::spell::Dictionary; |
318 | | -use crate::{Dialect, Document, Lrc, TokenStringExt}; |
319 | 321 |
|
320 | 322 | pub use flat_config::FlatConfig; |
321 | 323 | pub use structured_config::{ |
|
0 commit comments