Automattic / Automattic/harper

False positive: ItsContraction "control the gateway and its connected devices"

Open
#2,549 2 comments 2 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)
102

Description

**What got flagged?**
```
╭─[xiaomi_miio.markdown:1:1]

83 │ The Xiaomi Home {% term integration %} allows you to control the gateway and its connected subdevices.
│ ─┬─
│ ╰─── [Punctuation::ItsContraction] (pri 54): Use `it's` (short for `it has` or `it is`) here, not the possessive `its`.
────╯
```

https://github.com/home-assistant/home-assistant.io/blob/f1c8b9b2b1a5368f002717d9c911876532078517/source/_integrations/xiaomi_miio.markdown?plain=1#L83

**Why is this incorrect?**
This is possessive.

**Example of correct usage:**
N/A

Contributor guide

Open the contributing guide

Research direction

Start with the reported “control the gateway and its connected devices” sentence and trace the ItsContraction diagnostic that flags it. Reproduce the false positive, then identify the relevant rule tests; done means possessive “its” is accepted while genuine “it's” misuse remains flagged.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.