Skip to content

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

feat: the entire of→the entirety of (#3604)

Andrew Dunbar9d67723c9de3
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 789409d94..9f50385ec 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -5089,6 +5089,13 @@
"label": "Incident Report"
}
},
+ {
+ "Bool": {
+ "name": "TheEntiretyOf",
+ "state": true,
+ "label": "The Entirety Of"
+ }
+ },
{
"Bool": {
"name": "NowKnownAs",
diff --git a/harper-core/src/linting/weir_rules/TheEntiretyOf.weir b/harper-core/src/linting/weir_rules/TheEntiretyOf.weir
new file mode 100644
index 000000000..a6bfe73a8
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/TheEntiretyOf.weir
@@ -0,0 +1,9 @@
+expr main (the entire of)
+
+let message "Use `the entirety of` instead of `the entire of`."
+let description "Corrects `the entire of` to `the entirety of`."
+let kind "Usage"
+let becomes "the entirety of"
+
+test "I'm certain that is not the entire of your traceback" "I'm certain that is not the entirety of your traceback"
+test "I think there's still value in sharp emitting the metadata event when the entire of the input is available" "I think there's still value in sharp emitting the metadata event when the entirety of the input is available"