Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: responsible about → responsible for (#4567)
Andrew Dunbare12404769ad9
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex c8b7810dc..2d32de828 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -3924,6 +3924,13 @@"label": "Relay On For Rely"}},+ {+ "Bool": {+ "name": "ResponsibleFor",+ "state": true,+ "label": "Responsible For"+ }+ },{"Bool": {"name": "ReverseEngineer",diff --git a/harper-core/src/linting/weir_rules/ResponsibleFor.weir b/harper-core/src/linting/weir_rules/ResponsibleFor.weirnew file mode 100644index 000000000..a2f4d6dd2--- /dev/null+++ b/harper-core/src/linting/weir_rules/ResponsibleFor.weir@@ -0,0 +1,10 @@+expr main [(responsible about)]++let message "Use `responsible for` instead of `responsible about`."+let description "Corrects `responsible about` to `responsible for`."+let kind "Grammar"+let becomes "responsible for"++test "you sell a product -> you are responsible about the product" "you sell a product -> you are responsible for the product"+test "browsing without JS will be increasingly more difficult, and this project is of course not even slightly responsible about that" "browsing without JS will be increasingly more difficult, and this project is of course not even slightly responsible for that"+test "If people and companies don't start being responsible about its use, there will be consequences." "If people and companies don't start being responsible for its use, there will be consequences."