Automattic / Automattic/harper
Need linter to catch mixing up "wary" and "weary"
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 102
Description
"Wary" is related to "beware" and means to be cautious of something. "Weary" means "tired".
I'm willing to bet using "weary" when the meaning of "wary" is intended is common and the reverse is not.
I don't think this can be detected by either POS context or keywords in the context. And semantics are difficult.
But a gentle `message` guiding the user to make sure they're using the word they think they're using for every instance of "weary" might be OK.
Examples:
- I'm still a little bit **weary** of the fact that I haven't seen any contracts...
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating the linter's rule definitions and test structure, then review how message-only diagnostics are registered. Clarify how the wary/weary warning should limit false positives, add coverage for the provided example, and verify the resulting diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100