Skip to content

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

feat: thru→through (#2680)

Andrew Dunbar256d1a8e2a58
diff --git a/harper-core/src/linting/weir_rules/ExpandThrough.weir b/harper-core/src/linting/weir_rules/ExpandThrough.weir
new file mode 100644
index 000000000..cc2d32522
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/ExpandThrough.weir
@@ -0,0 +1,8 @@
+expr main (thru)
+
+let message "Use `thru` instead of `through`"
+let description "Expands the informal spelling `thru` to the standard word `through`."
+let kind "Style"
+let becomes "through"
+
+test "Switch with coloned value parsed differently when invoking with pass thru args" "Switch with coloned value parsed differently when invoking with pass through args"
\ No newline at end of file