Scene/project rule ids are free strings with no check against the catalogue
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 72/100
- Issue-Typ
- Refactoring
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- tooling
Rechercherichtung
Start with src/lint/catalog.ts and src/scenes/validate.ts, then trace the rule emitters named in the issue and the catalogue checks in src/lint/config.ts and src/lint/engine.ts. Run npm run build && npm test to establish the current behavior. Done when scene, project, and registry rule IDs are checked against the catalogue by TypeScript and their severities default from it.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Scene, project and registry checks emit ruleId as free strings, while SCENE_RULES in the catalogue lists the same ids by hand. Nothing ties the two together.
Where
src/lint/catalog.ts:15-40(SCENE_RULES: untyped tuples cast withas)src/scenes/validate.ts:20-29(finding(..., ruleId: string, ...)), plus the emitters insrc/scenes/scene-graph.ts,src/scenes/node-paths.tsandsrc/scenes/input-actions.tssrc/lint/config.ts:37-41(config rejects ids missing fromRULE_INFO);src/lint/engine.ts:39(routes onSCENE_RULE_IDS)
Why it hurts now
Adding a scene or project check means editing 2 to 3 files. A typo, or a forgotten catalogue entry, produces a rule that:
- users cannot configure ("Unknown rule id"),
list_rulesand the docs omit,- the lint engine may route wrongly.
TypeScript catches none of this. The two lists are in sync today (checked with grep), but only by hand.
Plan (each step leaves the code working)
- Add a test that greps
src/scenes/**for(scene|project|registry)-[a-z-]+ids passed tofinding(and asserts each one is inRULE_INFO. - Turn
SCENE_RULESinto anas constobject keyed by id, and derivetype SceneRuleId. Remove theascasts. - Change
finding()and the other emitters to takeruleId: SceneRuleId, and default the severity from the catalogue. - Once the compiler enforces it, drop the step-1 test.
Getting started
- Relevant files:
src/lint/catalog.ts,src/scenes/validate.ts - How to run tests:
npm run build && npm test
Filed by repo-audit/full-audit at e836036. Severity: low. Effort: S. audit-key: tech-debt|src/lint/catalog.ts|SCENE_RULES
- Vorherrschende Sprache
- TypeScript
- Sterne
- 0
- Forks
- 6
- Ø Merge
- 1 T. 21 Std.
- Gemergte PRs (30 T.)
- 8
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/godot-correctness-mcp
-
enhancement good first issue severity: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
TMHSDigital/godot-correctness-mcp#123 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
dependencies good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TMHSDigital/godot-correctness-mcp#116 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
TMHSDigital/godot-correctness-mcp#107 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
TMHSDigital/godot-correctness-mcp#106 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug good first issue severity: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
TMHSDigital/godot-correctness-mcp#105 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in TMHSDigital/godot-correctness-mcp
Ähnliche Issues
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
openclaw/openclaw#203385 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
nwverse/persona#12800 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
Maintainer antworten meist innerhalb von 1 Tag
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
microsoft/playwright#44289 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag