Skip to content

改善: scope_cvs_in_scope_mismatch path extension allowlist を repo extension inventory に同期 #438

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "396"
goal_ref: "PATH_TOKEN_EXTENSIONS を repo 実拡張子 inventory と同期させ、落ちる拡張子をなくす"
change_kind: code

Parent Issue

#396

Source

PR #430 review comment (reviewer NB3): #430 (comment)

Background / Problem

現行 allowlist は .md/.py/.ts/.tsx/.js/.yml/.yaml/.json/.sh のみ。.mdx/.jsx/.mjs/.cjs/.lock/.sql/Dockerfile/Makefile 等を落とす。CI で repo 実拡張子 inventory を出して allowlist を同期する仕組みがない。

Outcome

PATH_TOKEN_EXTENSIONS が repo 実拡張子 inventory(CI または静的スキャン)と同期されており、主要な拡張子 (.mdx, .jsx, .mjs, .cjs, .lock, .sql, Dockerfile, Makefile 等) が漏れなく含まれる。

In Scope

  • PATH_TOKEN_EXTENSIONS に不足拡張子を追加
  • CI で repo 内拡張子を列挙し、未対応拡張子を warning するスクリプト(任意)
  • 関連 fixture の追加(.mdx / Dockerfile 等を含む fixture)

Out of Scope

  • PATH_TOKEN_PREFIXES への変更
  • tokenization アルゴリズムの変更

Acceptance Criteria

  • PATH_TOKEN_EXTENSIONS が .mdx, .jsx, .mjs, .cjs 等を含む
  • 不足拡張子を含む fixture が PASS する
  • 既存 fixture 全件が引き続き PASS する

Verification Commands

$ rg -n "PATH_TOKEN_EXTENSIONS" .claude/skills/review-issue/scripts/check_issue_contract.py
$ uv run pytest .claude/skills/review-issue/tests/ -v

Allowed Paths

  • .claude/skills/review-issue/scripts/check_issue_contract.py
  • .claude/skills/review-issue/tests/
  • .claude/skills/review-issue/fixtures/

Stop Conditions

なし

Runtime Verification Applicability

decision: not_applicable
reason: pytest で機械的に検証可能

Activity

  1. added
    enhancement
    on May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions