Skip to content

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

feat: hidden into→hidden in (#2844)

Andrew Dunbar5033582cfacd
diff --git a/harper-core/src/linting/weir_rules/HiddenIn.weir b/harper-core/src/linting/weir_rules/HiddenIn.weir
new file mode 100644
index 000000000..aac3de3d2
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/HiddenIn.weir
@@ -0,0 +1,8 @@
+expr main (hidden into)
+
+let message "Did you mean `hidden in`?"
+let description "Corrects `hidden into` to `hidden in`."
+let kind "Usage"
+let becomes "hidden in"
+
+test "The button is hidden into the exam settings menu or something like that." "The button is hidden in the exam settings menu or something like that."
\ No newline at end of file
diff --git a/harper-core/src/linting/weir_rules/OnTopOf.weir b/harper-core/src/linting/weir_rules/OnTopOf.weir
index 72080dfc0..cc9183626 100644
--- a/harper-core/src/linting/weir_rules/OnTopOf.weir
+++ b/harper-core/src/linting/weir_rules/OnTopOf.weir
@@ -1,8 +1,9 @@
-expr main (ontop of)
+expr main [(ontop of), (in top of)]
let message "Did you mean `on top of`?"
-let description "Corrects `ontop of` to `on top of`."
-let kind "BoundaryError"
+let description "Corrects `ontop of` and `in top of` to `on top of`."
+let kind "Usage"
let becomes "on top of"
test "Initcpio hooks for overlayfs ontop of root." "Initcpio hooks for overlayfs on top of root."
+test "This project is a proof of concept to enable all the awesome features of BrowserSync in top of a Play Framework server." "This project is a proof of concept to enable all the awesome features of BrowserSync on top of a Play Framework server."
\ No newline at end of file