Automattic / Automattic/harper
The `AvoidCurses` linter should take context into account
- 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.
Contributor 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