Automattic / Automattic/harper

The `AvoidCurses` linter should take context into account

Open
#2,388 1 comment 0 reactions 0 assignees View on GitHub
bug enhancement linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

Many swear words are used as part of idioms and set phrases. For example, "piss" shouldn't be replaced with "pee" or "urine" when it's part of the "to piss someone off" / "pissed off" etc.

In this context, the single swear word could be replaced by "tick"/"ticked" or the pair of words could be replaced by "annoy"/"annoyed" etc.

Image

Contributor guide

Open the contributing guide

Research direction

Locate the AvoidCurses linter implementation and its tests, then reproduce the reported “piss someone off” and “pissed off” cases. Done means idiomatic uses receive context-appropriate alternatives while standalone swear words retain the existing replacement behavior; add regression coverage for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.