Automattic / Automattic/harper

False positive in `ToTwoToo`

Open
#2,856 2 comments 1 reaction 0 assignees View on GitHub
bug harper-core linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

Image

> workplace environments that are not family-friendly (particularly for women), and limited access to affordable, high-quality childcare

It seems to think "to affordable" should be "too affordable" because "affordable" is an adjective. Perhaps checking for the following comma might help?

Contributor guide

Open the contributing guide

Research direction

Start by locating the `ToTwoToo` rule in the Harper codebase and reproduce it with the quoted phrase, especially the transition from "to" to "affordable." The issue is done when that phrase no longer produces the false positive while valid "too" cases continue to be recognized.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.