MCP baseline filtering untested for validate_* tools and report categories

Offen
#112 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
77/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
devtools, testing

Rechercherichtung

Start with the baseline filtering in src/tools/scenes.ts and the existing tests in test/tools.test.ts:194-213. Add the listed cases for scene, project config, registry, and report category filtering, path resolution, invalid JSON, and consecutive lint calls. Run npm run build && npm test; done when the new tests pass and the report category counts equal totalFindings.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

good first issue severity: low testing

Summary

MCP baseline support is tested only for lint_project and the lint category of project_report. The per-category filtering for scenes, project and registries is never exercised.

Where

  • src/tools/scenes.ts:26-30, src/tools/scenes.ts:62-65, src/tools/scenes.ts:79-85, src/tools/scenes.ts:102-119
  • test/tools.test.ts:194-213

Test cases to add

  • validate_scenes with a valid baseline plus a new broken .tscn: only the new file is returned, and baselined and count are correct.
  • validate_project_config with a baseline: an old bad autoload is absorbed and a new one is reported.
  • validate_registries with a baseline: entries is preserved, and only new dangling paths are returned.
  • project_report with a baseline on a copy of test/fixtures/scene-project: each category is filtered independently, and errorCount + warningCount + infoCount === totalFindings.
  • An absolute baseline path works, and a relative one resolves against the project root.
  • Invalid baseline JSON returns isError.
  • Editing a file between two consecutive lint_project calls is reflected in the second call. This guards the per-run read cache in src/project/files.ts.

Getting started

  • Relevant files: src/tools/scenes.ts, test/tools.test.ts
  • How to run tests: npm run build && npm test

Filed by repo-audit/full-audit at e836036. Severity: low. Effort: S. audit-key: testing|src/tools/scenes.ts|baseline

Vorherrschende Sprache
TypeScript
Sterne
0
Forks
6
Ø Merge
1 T. 21 Std.
Gemergte PRs (30 T.)
8

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TMHSDigital/godot-correctness-mcp

Alle Issues in TMHSDigital/godot-correctness-mcp

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.