Scene/project rule ids are free strings with no check against the catalogue
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
- Type d'issue
- Refactorisation
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- tooling
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- TypeScript
- Étoiles
- 0
- Forks
- 6
- Merge moyen
- 1 j 21 h
- PR mergées (30 j)
- 8
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de TMHSDigital/godot-correctness-mcp
-
enhancement good first issue severity: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
TMHSDigital/godot-correctness-mcp#123 ·
Les mainteneurs répondent en général sous 2 jours
-
dependencies good first issue severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
TMHSDigital/godot-correctness-mcp#116 ·
Les mainteneurs répondent en général sous 2 jours
-
bug good first issue severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
TMHSDigital/godot-correctness-mcp#107 ·
Les mainteneurs répondent en général sous 2 jours
-
bug good first issue severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
TMHSDigital/godot-correctness-mcp#106 ·
Les mainteneurs répondent en général sous 2 jours
-
bug good first issue severity: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
TMHSDigital/godot-correctness-mcp#105 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de TMHSDigital/godot-correctness-mcp
Issues similaires
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
openclaw/openclaw#203385 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nwverse/persona#12800 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
microsoft/playwright#44289 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue
Difficulté 2/5 Une demi-journée Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour