Automattic / Automattic/harper

False positive suggesting "better of" → "better off"

Open Beginner friendly
#3,173 0 comments 0 reactions 0 assignees View on GitHub
bug harper-core linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

Image

> 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.