Bring --files/--changed-since to lint_project, validate-scenes and report

Đang mở
#121 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Start with the narrowing check and runCommand in src/cli.ts, then inspect src/tools/lint.ts and src/project/changed.ts to trace how file selection reaches lint_project. Read the scene validation and projectReport entry points to see where the selected paths must be applied, including attached scripts. Done when the CLI commands and MCP tool consistently narrow their work, generated tools are updated, and relevant tests cover the behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement severity: medium

Summary

--files and --changed-since only work with lint, and the lint_project MCP tool has no equivalent. Extend narrowing to lint_project, validate-scenes and report.

Where

  • src/cli.ts:336-341 (rejects narrowing for anything other than lint)
  • src/cli.ts:40-66 (runCommand passes only only to lintProject)
  • src/tools/lint.ts:56-65 (lint_project input is only { path, baseline })

Proposal

  1. Add optional files: string[] and changedSince: string to lint_project, reusing toProjectPaths and changedSince from src/project/changed.ts, then run npm run generate:tools. Effort S.
  2. Pass only into scene validation and projectReport. A scene is included when the scene itself, or a script it attaches, is in the set. Effort M.

Who benefits

Agents that just edited a few files (today they must lint the whole project, or call lint_file per file without project context), and PR CI runs that touch only a few scenes.

Open questions

  • Should a changed .gd pull in every scene that uses it? That needs a reverse index from script to scenes.
  • Fix the silent-drop behaviour of --files first, so the MCP tool does not inherit it.

Filed by repo-audit/full-audit at e836036. Severity: medium. Effort: M. audit-key: enhancement|src/cli.ts|changedSince

Ngôn ngữ chính
TypeScript
Star
0
Fork
6
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/godot-correctness-mcp

Tất cả issue của TMHSDigital/godot-correctness-mcp

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.