{"eip":7199,"title":"Linter Scope","description":"Relax the policy for updating EIP.","authors":["Zainan Victor Zhou (@xinbenlv)"],"status":"Withdrawn","type":"Meta","created":"2023-06-20","discussionsTo":"https://ethereum-magicians.org/t/proposal-eipw-should-only-complain-about-changing-lines/14762","repo":"EIPs","label":"EIP-7199","officialUrl":"https://eips.ethereum.org/EIPS/eip-7199","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7199.md","url":"https://eips.huatuo.xyz/eip-7199/","tldr":{"en":"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.","ja":"EIP を編集するプルリクエストは、変更していない行のリンターエラーを、EIP のステータスを変更する場合を除いて修正する必要はない、とするプロセス提案。取り下げ済み。","ko":"EIP를 수정하는 풀 리퀘스트는 EIP의 상태를 바꾸는 경우가 아니라면, 건드리지 않은 줄의 린터 오류를 고치지 않아도 된다는 프로세스 제안으로, 철회되었다.","zh":"一个已撤回的流程提案：修改 EIP 的拉取请求无需修复其未改动行上的 linter 错误，除非它会更改该 EIP 的状态。"},"tags":["meta","process","linter","eipw"],"explainers":{"en":{"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"],"related":[1,5069],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7199/","markdown":"## What problem does it solve?\n\nEvery 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.\n\nThat 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.\n\n## How it works\n\nThe proposal is a single policy statement:\n\n- When a pull request **updates** an existing EIP, it SHOULD NOT be required to fix linter errors on **untouched lines**.\n- 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.\n\nThe rationale is simply to allow \"micro contributions\": fixing a typo, clarifying one section, or updating a link, without turning that into a cleanup project.\n\nNothing in the proposal changes the protocol, the EIP format, or the lint rules themselves. It only scopes *which* errors should block a merge.\n\n## Sample code\n\nThe idea, expressed as pseudocode for a linter that only reports problems on lines changed by the pull request:\n\n```python\ndef blocking_errors(pr, lint_errors):\n    # A status change gets the full check\n    if pr.changes_front_matter_field(\"status\"):\n        return lint_errors\n\n    changed = pr.changed_line_numbers()      # lines added or modified in this PR\n    return [e for e in lint_errors if e.line in changed]\n\n# Example: a typo fix on line 120 of an old EIP\n# lint_errors = [Error(line=12, msg=\"missing 'description'\"),\n#                Error(line=120, msg=\"trailing whitespace\")]\n# blocking_errors(...) -\u003e only the line-120 error blocks the merge\n```\n\n## Things to know\n\n- **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.\n- It is a Meta EIP about the editing process. It has no effect on Ethereum clients, smart contracts or wallets.\n- 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.\n"},"ja":{"lang":"ja","tldr":"EIP を編集するプルリクエストは、変更していない行のリンターエラーを、EIP のステータスを変更する場合を除いて修正する必要はない、とするプロセス提案。取り下げ済み。","tags":["meta","process","linter","eipw"],"related":[1,5069],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7199/","markdown":"## 何を解決するのか\n\nEIPs および ERCs リポジトリへのすべてのプルリクエストは、自動リンター（eipw）によってチェックされます。実際には、リンターはファイル内の*すべての*エラーを報告し、その中にはプルリクエストが開かれるずっと前から存在していたものも含まれます。大きくて古い EIP の誤字を直したいだけの人が、文書の別の場所の書式の問題を片付けるまで、1 行の変更を止められてしまうことがありました。\n\nこの摩擦は、小さくても有益な貢献を妨げます。EIP-7199 は、通常の編集では以前から存在するリンターエラーを無視してよいと、エディターやツールが扱えるように、明確なルールを文書化することを提案しました。\n\n## 仕組み\n\n提案は 1 つのポリシー文です。\n\n- 既存の EIP を**更新**するプルリクエストは、**変更していない行**のリンターエラーを修正することを求められるべきではない（SHOULD NOT）。\n- 例外は**ステータスの変更**（たとえば Draft から Review、Last Call から Final）です。ステータスの変更は文書全体がレビューされるタイミングなので、リントルールの全体が引き続き適用されます。\n\n根拠は単純に「マイクロコントリビューション」を可能にすること、つまり誤字の修正、1 つの節の明確化、リンクの更新を、クリーンアップ作業に発展させないことです。\n\nこの提案は、プロトコル、EIP のフォーマット、リントルール自体を何も変更しません。マージを妨げるべきなのは*どの*エラーかという範囲を定めるだけです。\n\n## サンプルコード\n\nこの考え方を、プルリクエストで変更された行の問題だけを報告するリンターの擬似コードとして表すとこうなります。\n\n```python\ndef blocking_errors(pr, lint_errors):\n    # A status change gets the full check\n    if pr.changes_front_matter_field(\"status\"):\n        return lint_errors\n\n    changed = pr.changed_line_numbers()      # lines added or modified in this PR\n    return [e for e in lint_errors if e.line in changed]\n\n# Example: a typo fix on line 120 of an old EIP\n# lint_errors = [Error(line=12, msg=\"missing 'description'\"),\n#                Error(line=120, msg=\"trailing whitespace\")]\n# blocking_errors(...) -\u003e only the line-120 error blocks the merge\n```\n\n## 知っておくべきこと\n\n- **ステータス: Withdrawn。** 取り下げの理由として挙げられているのは、このポリシーがすでに [EIP-1](/eip-1/)（EIP の目的とガイドライン）と [EIP-5069](/eip-5069/)（EIP エディターハンドブック）に記載されていることです。現在のルールはそちらを参照してください。\n- 編集プロセスに関する Meta EIP です。Ethereum クライアント、スマートコントラクト、ウォレットには影響しません。\n- EIP/ERC リポジトリに貢献する場合、変更に対してリンターが引き続き実行されることを想定してください。以前から存在する問題にどの程度厳格に適用するかはエディターが判断します。\n"},"ko":{"lang":"ko","tldr":"EIP를 수정하는 풀 리퀘스트는 EIP의 상태를 바꾸는 경우가 아니라면, 건드리지 않은 줄의 린터 오류를 고치지 않아도 된다는 프로세스 제안으로, 철회되었다.","tags":["meta","process","linter","eipw"],"related":[1,5069],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7199/","markdown":"## 어떤 문제를 해결하나요?\n\nEIPs와 ERCs 저장소에 올라오는 모든 풀 리퀘스트는 자동 린터(eipw)의 검사를 받습니다. 실제로 린터는 파일의 *모든* 오류를 보고하며, 풀 리퀘스트가 열리기 훨씬 전부터 있던 오류도 포함됩니다. 크고 오래된 EIP의 오타만 고치고 싶은 사람이, 문서 다른 곳의 서식 문제를 정리할 때까지 한 줄짜리 변경이 막힐 수 있었습니다.\n\n이런 마찰은 작지만 유용한 기여를 꺼리게 만듭니다. EIP-7199는 편집자와 도구가 일상적인 수정에서는 이미 존재하던 린트 오류를 무시해도 되는 것으로 취급하도록, 명확한 규칙을 문서화하자고 제안했습니다.\n\n## 어떻게 동작하나요?\n\n제안은 하나의 정책 진술입니다.\n\n- 풀 리퀘스트가 기존 EIP를 **수정**할 때, **건드리지 않은 줄**의 린터 오류를 고치도록 요구해서는 안 됩니다(SHOULD NOT).\n- 예외는 **상태 변경**(예: Draft에서 Review, Last Call에서 Final)입니다. 상태 변경은 문서 전체를 검토하는 시점이므로 린트 규칙 전체가 그대로 적용됩니다.\n\n근거는 단순히 \"마이크로 기여\"를 허용하자는 것입니다. 오타 수정, 한 절의 명확화, 링크 갱신이 정리 작업으로 번지지 않게 하자는 것입니다.\n\n이 제안은 프로토콜, EIP 형식, 린트 규칙 자체를 전혀 바꾸지 않습니다. *어떤* 오류가 병합을 막아야 하는지의 범위만 정할 뿐입니다.\n\n## 샘플 코드\n\n이 아이디어를, 풀 리퀘스트에서 변경된 줄의 문제만 보고하는 린터의 의사 코드로 나타내면 다음과 같습니다.\n\n```python\ndef blocking_errors(pr, lint_errors):\n    # A status change gets the full check\n    if pr.changes_front_matter_field(\"status\"):\n        return lint_errors\n\n    changed = pr.changed_line_numbers()      # lines added or modified in this PR\n    return [e for e in lint_errors if e.line in changed]\n\n# Example: a typo fix on line 120 of an old EIP\n# lint_errors = [Error(line=12, msg=\"missing 'description'\"),\n#                Error(line=120, msg=\"trailing whitespace\")]\n# blocking_errors(...) -\u003e only the line-120 error blocks the merge\n```\n\n## 알아둘 점\n\n- **상태: Withdrawn.** 철회 이유로 밝힌 것은 이 정책이 이미 [EIP-1](/eip-1/)(EIP의 목적과 가이드라인)과 [EIP-5069](/eip-5069/)(EIP 편집자 핸드북)에 문서화되어 있다는 점입니다. 현재 규칙은 그 문서들을 읽어 보세요.\n- 편집 프로세스에 관한 Meta EIP입니다. 이더리움 클라이언트, 스마트 컨트랙트, 지갑에는 영향을 주지 않습니다.\n- EIP/ERC 저장소에 기여한다면 변경 사항에 대해 린터가 계속 실행될 것으로 예상하세요. 이미 있던 문제에 얼마나 엄격하게 적용할지는 편집자가 결정합니다.\n"},"zh":{"lang":"zh","tldr":"一个已撤回的流程提案：修改 EIP 的拉取请求无需修复其未改动行上的 linter 错误，除非它会更改该 EIP 的状态。","tags":["meta","process","linter","eipw"],"related":[1,5069],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7199/","markdown":"## 它解决什么问题？\n\nEIPs 和 ERCs 仓库的每个拉取请求都会由自动 linter（eipw）检查。实际上，linter 会报告文件中的*每一个*错误，包括在拉取请求提交之前很久就已存在的错误。有人只想修正一份大型旧 EIP 里的一个错别字，却可能发现自己这一行的改动被卡住，直到把文档其他地方的格式问题都清理干净。\n\n这种阻力会让人不愿做小而有用的贡献。EIP-7199 提议写下一条明确的规则，让编辑和工具在日常编辑中把此前就已存在的 lint 错误视为可忽略。\n\n## 它如何运作\n\n该提案只有一条政策声明：\n\n- 当拉取请求**更新**现有 EIP 时，不应（SHOULD NOT）要求它修复**未改动行**上的 linter 错误。\n- 例外是**状态变更**（例如 Draft 到 Review，或 Last Call 到 Final）。状态变更是对整份文档进行审查的时刻，因此完整的 lint 规则依然适用。\n\n其理由很简单，就是允许\"微贡献\"：修正错别字、澄清某一节或更新链接，而不会因此变成一次清理工程。\n\n该提案不改变协议、EIP 格式或 lint 规则本身。它只是限定了*哪些*错误应当阻止合并。\n\n## 示例代码\n\n这一想法用伪代码表示，是一个只报告拉取请求所改动行上问题的 linter：\n\n```python\ndef blocking_errors(pr, lint_errors):\n    # A status change gets the full check\n    if pr.changes_front_matter_field(\"status\"):\n        return lint_errors\n\n    changed = pr.changed_line_numbers()      # lines added or modified in this PR\n    return [e for e in lint_errors if e.line in changed]\n\n# Example: a typo fix on line 120 of an old EIP\n# lint_errors = [Error(line=12, msg=\"missing 'description'\"),\n#                Error(line=120, msg=\"trailing whitespace\")]\n# blocking_errors(...) -\u003e only the line-120 error blocks the merge\n```\n\n## 需要注意\n\n- **状态：Withdrawn。** 给出的撤回理由是该政策已记录在 [EIP-1](/eip-1/)（EIP 的目的与指南）和 [EIP-5069](/eip-5069/)（EIP 编辑手册）中。当前规则请参阅这两份文档。\n- 这是一个关于编辑流程的 Meta EIP，对以太坊客户端、智能合约或钱包没有影响。\n- 如果你向 EIP/ERC 仓库贡献内容，请预期 linter 仍会对你的改动运行；对于已存在的问题，编辑会决定执行的严格程度。\n"}}}
