Automattic / Automattic/harper

False negative missing then → than

Open
#2,503 1 comment 0 reactions 0 assignees View on GitHub
bug false-negative linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 12h
Merged PRs (30d)
106

Description

**Describe the bug**

Image

We have linters that correct mixing up "then" and "than" but they failed to flag the mistake in this sentence:

> If I do include cryptocurrencies abbreviations, than BTC for sure, maybe ETH, and possibly even DOGE.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the quoted sentence in Harper and trace the rule or test coverage for confusing “then” and “than” cases. Add a regression test for the sentence and verify that the checker flags the incorrect “than” usage without introducing a false positive for valid comparisons.

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.