Automattic / Automattic/harper

Ignore specific line

Open
#3,592 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

**What problem does this solve?**
I need a way to ignore linting on a specific line like others. For example `# noqa` in Ruff (Python)

**Proposed Solution**
Use `harper: ignore` or some other comments at the end of the line to enable this.

**Examples**
Currently, in typst, one of my second level tile is `== f`, but harper continues tell me this is a typo. I just want to ignore this line. Like `== f // harper: ignore`

**Component**
- [x] Core engine
- [ ] Plugin/Extension
- [ ] Other: _____

**Additional Context**
Like the summer semester 2026, we'd like to write as `SS26`. I don't want to add it to the dictionary. Or just like the case `f`. It's for global level but i need some more specific control just as the other linters in the programming languages.

Contributor guide

Open the contributing guide

Research direction

The issue points to the core engine and Typst input but names no file or test. Start by locating the engine’s Typst parsing and diagnostic emission paths, then verify the agreed inline comment syntax; done means an ignored line produces no lint diagnostic while nearby lines still do, including the SS26 and f examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
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.