---
eip: 7199
label: EIP-7199
title: Linter Scope
status: Withdrawn
type: Meta
created: 2023-06-20
official: https://eips.ethereum.org/EIPS/eip-7199
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7199.md
canonical: https://eips.huatuo.xyz/eip-7199/
lang: en
tldr: "A withdrawn process proposal saying that a pull request editing an EIP should not have to fix linter errors on lines it did not touch, unless it changes the EIP's status."
tags: [meta, process, linter, eipw]
---

# EIP-7199: Linter Scope

> Relax the policy for updating EIP.

**TL;DR:** A withdrawn process proposal saying that a pull request editing an EIP should not have to fix linter errors on lines it did not touch, unless it changes the EIP's status.

## What problem does it solve?

Every pull request to the EIPs and ERCs repositories is checked by an automated linter (eipw). In practice the linter reports *every* error in the file, including ones that were already there long before the pull request was opened. Someone who just wants to fix a typo in a large, older EIP could find their one-line change blocked until they cleaned up formatting problems elsewhere in the document.

That friction discourages small, useful contributions. EIP-7199 proposed writing down a clear rule so that editors and tooling would treat old, pre-existing lint errors as ignorable for routine edits.

## How it works

The proposal is a single policy statement:

- When a pull request **updates** an existing EIP, it SHOULD NOT be required to fix linter errors on **untouched lines**.
- The exception is a **status change** (for example Draft to Review, or Last Call to Final). A status change is a moment where the whole document is reviewed, so the full set of lint rules still applies.

The rationale is simply to allow "micro contributions": fixing a typo, clarifying one section, or updating a link, without turning that into a cleanup project.

Nothing in the proposal changes the protocol, the EIP format, or the lint rules themselves. It only scopes *which* errors should block a merge.

## Sample code

The idea, expressed as pseudocode for a linter that only reports problems on lines changed by the pull request:

```python
def blocking_errors(pr, lint_errors):
    # A status change gets the full check
    if pr.changes_front_matter_field("status"):
        return lint_errors

    changed = pr.changed_line_numbers()      # lines added or modified in this PR
    return [e for e in lint_errors if e.line in changed]

# Example: a typo fix on line 120 of an old EIP
# lint_errors = [Error(line=12, msg="missing 'description'"),
#                Error(line=120, msg="trailing whitespace")]
# blocking_errors(...) -> only the line-120 error blocks the merge
```

## Things to know

- **Status: Withdrawn.** The stated withdrawal reason is that this policy is already documented in [EIP-1](/eip-1/) (EIP purpose and guidelines) and [EIP-5069](/eip-5069/) (the EIP Editor Handbook). Read those for the current rules.
- It is a Meta EIP about the editing process. It has no effect on Ethereum clients, smart contracts or wallets.
- If you contribute to the EIP/ERC repositories, expect the linter to still run on your changes; editors decide how strictly to apply it to pre-existing issues.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7199
