Automattic / Automattic/harper

False positive: `InsertTo` wrongly triggered in "He wants code"

Open
#3,205 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

> He wants code that matches his style and says he will only merge it if it looks good enough.

This is surely due to "code" being a verb as well as a noun and the linter probably only checking for it being a verb.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the quoted sentence and trace the InsertTo rule that flags “code.” Determine why the rule treats this noun usage as a verb, then verify the sentence is no longer flagged without disrupting the rule’s intended detections.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.