Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(core): wire in the `Dashes` linter
Elijah Potterc51195fc6efc
diff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rsindex cac19c881..800b18bbd 100644--- a/harper-core/src/linting/lint_group.rs+++ b/harper-core/src/linting/lint_group.rs@@ -68,6 +68,7 @@ use super::wordpress_dotcom::WordPressDotcom;use super::wrong_quotes::WrongQuotes;use super::{CurrencyPlacement, Linter, NoOxfordComma, OxfordComma};use super::{Lint, PatternLinter};+use crate::linting::dashes::Dashes;use crate::linting::{closed_compounds, phrase_corrections};use crate::{CharString, Dialect, Document, TokenStringExt};use crate::{Dictionary, MutableDictionary};@@ -299,6 +300,7 @@ impl LintGroup {// Add all the more complex rules to the group.insert_struct_rule!(AdjectiveOfA, true);insert_pattern_rule!(BackInTheDay, true);+ insert_pattern_rule!(Dashes, true);insert_struct_rule!(WordPressDotcom, true);insert_pattern_rule!(OutOfDate, true);insert_pattern_rule!(ThenThan, true);diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rsindex 1fae4fcd7..28bf87c71 100644--- a/harper-core/src/linting/mod.rs+++ b/harper-core/src/linting/mod.rs@@ -82,6 +82,7 @@ pub use compound_nouns::CompoundNouns;pub use confident::Confident;pub use correct_number_suffix::CorrectNumberSuffix;pub use currency_placement::CurrencyPlacement;+pub use dashes::Dashes;pub use despite_of::DespiteOf;pub use dot_initialisms::DotInitialisms;pub use ellipsis_length::EllipsisLength;