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

Ouverte
#121 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
55/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
typescript
Domaine
tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
TypeScript
Étoiles
0
Forks
6
Merge moyen
1 j 21 h
PR mergées (30 j)
8

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TMHSDigital/godot-correctness-mcp

Toutes les issues de TMHSDigital/godot-correctness-mcp

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.