Skip to content

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

feat(core): remove incorrect rules

Elijah Potter50d7fdf08f6a
diff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rs
index 063216733..11c72e30e 100644
--- a/harper-core/src/linting/closed_compounds.rs
+++ b/harper-core/src/linting/closed_compounds.rs
@@ -76,8 +76,6 @@ create_closed_compound_linter!(Nobody, "no body", "nobody");
create_closed_compound_linter!(Somebody, "some body", "somebody");
create_closed_compound_linter!(Anybody, "any body", "anybody");
create_closed_compound_linter!(Nothing, "no thing", "nothing");
-create_closed_compound_linter!(Anyway, "any way", "anyway");
-create_closed_compound_linter!(Anytime, "any time", "anytime");
create_closed_compound_linter!(Anywhere, "any where", "anywhere");
create_closed_compound_linter!(Instead, "in stead", "instead");
create_closed_compound_linter!(Somewhere, "some where", "somewhere");
@@ -85,10 +83,8 @@ create_closed_compound_linter!(Middleware, "middle ware", "middleware");
create_closed_compound_linter!(Into, "in to", "into");
create_closed_compound_linter!(Overclocking, "over clocking", "overclocking");
create_closed_compound_linter!(Backplane, "back plane", "backplane");
-create_closed_compound_linter!(Bitrate, "bit rate", "bitrate");
create_closed_compound_linter!(Overload, "over load", "overload");
create_closed_compound_linter!(Underclock, "under clock", "underclock");
-create_closed_compound_linter!(Opensource, "open source", "opensource");
create_closed_compound_linter!(Devops, "dev ops", "devops");
create_closed_compound_linter!(Multithreading, "multi threading", "multithreading");
create_closed_compound_linter!(Everywhere, "every where", "everywhere");
@@ -113,7 +109,6 @@ create_closed_compound_linter!(Downright, "down right", "downright");
create_closed_compound_linter!(Upward, "up ward", "upward");
create_closed_compound_linter!(Henceforth, "hence forth", "henceforth");
create_closed_compound_linter!(Regardless, "regard less", "regardless");
-create_closed_compound_linter!(Evermore, "ever more", "evermore");
#[cfg(test)]
mod tests {
@@ -122,7 +117,7 @@ mod tests {
Overall, Therefore, Tonight, Worldwide,
};
use super::{
- Anyhow, Downright, Evermore, Forthwith, Henceforth, Hereafter, Hereby, Hereunder, Insofar,
+ Anyhow, Downright, Forthwith, Henceforth, Hereafter, Hereby, Hereunder, Insofar,
Nonetheless, Notwithstanding, Otherwise, Regardless, Thereafter, Therein, Thereupon,
Upward, Whereupon, Widespread,
};
diff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rs
index 4e8fc485c..6010c7b3c 100644
--- a/harper-core/src/linting/lint_group.rs
+++ b/harper-core/src/linting/lint_group.rs
@@ -6,13 +6,13 @@ use super::avoid_curses::AvoidCurses;
use super::boring_words::BoringWords;
use super::capitalize_personal_pronouns::CapitalizePersonalPronouns;
use super::closed_compounds::{
- Altogether, Anybody, Anyhow, Anytime, Anyway, Anywhere, Asleep, Backplane, Bitrate, Devops,
- Downright, Ecommerce, Evermore, Everywhere, Forthwith, Henceforth, Hereafter, Hereby,
- Hereunder, However, Insofar, Instead, Intact, Into, Itself, Likewise, Middleware,
- Misunderstand, Misunderstood, Misuse, Misused, Multicore, Multimedia, Multithreading, Myself,
- Nobody, Nonetheless, Nothing, Notwithstanding, Opensource, Otherwise, Overall, Overclocking,
- Overload, Postpone, Proofread, Regardless, Somebody, Somehow, Somewhere, Thereafter, Therefore,
- Therein, Thereupon, Tonight, Underclock, Upset, Upward, Whereupon, Widespread, Worldwide,
+ Altogether, Anybody, Anyhow, Anywhere, Asleep, Backplane, Devops, Downright, Ecommerce,
+ Everywhere, Forthwith, Henceforth, Hereafter, Hereby, Hereunder, However, Insofar, Instead,
+ Intact, Into, Itself, Likewise, Middleware, Misunderstand, Misunderstood, Misuse, Misused,
+ Multicore, Multimedia, Multithreading, Myself, Nobody, Nonetheless, Nothing, Notwithstanding,
+ Otherwise, Overall, Overclocking, Overload, Postpone, Proofread, Regardless, Somebody, Somehow,
+ Somewhere, Thereafter, Therefore, Therein, Thereupon, Tonight, Underclock, Upset, Upward,
+ Whereupon, Widespread, Worldwide,
};
use super::compound_nouns::CompoundNouns;
use super::correct_number_suffix::CorrectNumberSuffix;
@@ -172,7 +172,6 @@ macro_rules! create_lint_group_config {
create_lint_group_config!(
CompoundNouns => true,
- Evermore => true,
Regardless => true,
Henceforth => true,
Upward => true,
@@ -196,18 +195,14 @@ create_lint_group_config!(
Multicore => true,
Multithreading => true,
Devops => true,
- Opensource => true,
Underclock => true,
Overload => true,
- Bitrate => true,
Backplane => true,
Overclocking => true,
Middleware => true,
Somewhere => true,
Instead => true,
Anywhere => true,
- Anytime => true,
- Anyway => true,
Nothing => true,
Anybody => true,
Somebody => true,
diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rs
index 4381d8004..a2ed90cb9 100644
--- a/harper-core/src/linting/mod.rs
+++ b/harper-core/src/linting/mod.rs
@@ -51,13 +51,13 @@ pub use avoid_curses::AvoidCurses;
pub use boring_words::BoringWords;
pub use capitalize_personal_pronouns::CapitalizePersonalPronouns;
pub use closed_compounds::{
- Altogether, Anybody, Anyhow, Anytime, Anyway, Anywhere, Asleep, Backplane, Bitrate, Devops,
- Downright, Ecommerce, Evermore, Everywhere, Forthwith, Henceforth, Hereafter, Hereby,
- Hereunder, However, Insofar, Instead, Intact, Into, Itself, Likewise, Middleware,
- Misunderstand, Misunderstood, Misuse, Misused, Multicore, Multimedia, Multithreading, Myself,
- Nobody, Nonetheless, Nothing, Notwithstanding, Opensource, Otherwise, Overall, Overclocking,
- Overload, Postpone, Proofread, Regardless, Somebody, Somehow, Somewhere, Thereafter, Therefore,
- Therein, Thereupon, Tonight, Underclock, Upset, Upward, Whereupon, Widespread, Worldwide,
+ Altogether, Anybody, Anyhow, Anywhere, Asleep, Backplane, Devops, Downright, Ecommerce,
+ Everywhere, Forthwith, Henceforth, Hereafter, Hereby, Hereunder, However, Insofar, Instead,
+ Intact, Into, Itself, Likewise, Middleware, Misunderstand, Misunderstood, Misuse, Misused,
+ Multicore, Multimedia, Multithreading, Myself, Nobody, Nonetheless, Nothing, Notwithstanding,
+ Otherwise, Overall, Overclocking, Overload, Postpone, Proofread, Regardless, Somebody, Somehow,
+ Somewhere, Thereafter, Therefore, Therein, Thereupon, Tonight, Underclock, Upset, Upward,
+ Whereupon, Widespread, Worldwide,
};
pub use compound_nouns::CompoundNouns;
pub use correct_number_suffix::CorrectNumberSuffix;