Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions harper-core/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,13 @@
"label": "Expand Previous"
}
},
{
"Bool": {
"name": "ExpandThough",
"state": true,
"label": "Expand Though"
}
},
{
"Bool": {
"name": "ExpandThrough",
Expand Down
10 changes: 10 additions & 0 deletions harper-core/src/linting/weir_rules/ExpandThough.weir
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
expr main (tho)

#mdkb
let message "Use `though` instead of `tho`"
let description "Expands the informal spelling `tho` to the standard word `though`."
let kind "Style"
let becomes "though"

test "When i press the f8 key, it pause emulation, even tho the bind is not present at all" "When i press the f8 key, it pause emulation, even though the bind is not present at all"
test "I'm not sure what to say tho, it does work generally" "I'm not sure what to say though, it does work generally"
Loading