Automattic / Automattic/harper
False positive suggesting "better of" → "better off"
Open
Beginner friendly
bug
harper-core
linting
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 106
Description
> Maybe after cap replaced voltage changed for **better of course** and it was needed to adjust it with that potenciometer.
In this case the construction of the sentence is a bit awkward but we should still be able to rule out "of" when it's part of "of course".
Contributor guide
Research direction
Search the Rust codebase for the rule or diagnostic that suggests “better off.” Add a regression case for “better of course” and verify that the suggestion is not reported while the intended “better off” correction remains covered. Done means this phrase no longer produces the false positive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100