CLI edge cases: rules accepts stray flags, locale-dependent sort, --fix scope
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
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- node.js, typescript
Piste de recherche
Start with the listed sections of src/cli.ts, src/lint/project.ts, src/baseline.ts, and src/lint/rules/stringly-nodepath.ts, then inspect related cases in test/cli.test.ts. Run npm run build && npm test to see the current behavior. Done means each listed edge case has a documented decision or code change and a test; the issue describes several interacting CLI and fix-policy decisions.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
Small CLI edge cases left over after the strict-arguments work (#68) and the new --fix flag.
Where
src/cli.ts:315(rulesreturns before any flag validation)src/cli.ts:75-77,src/lint/project.ts:39-41,src/baseline.ts:69-71(localeComparewith no fixed locale)src/lint/rules/stringly-nodepath.ts:30-41,src/cli.ts:353-357(--fixscope)
Details and checklist
-
gdcorrect rulessilently accepts--fail-on bogus,--fix,--files,--baselineand--write-baseline. That contradicts the strict-CLI contract. Reject flags that do not apply torules, with exit 2. - Sorting with
a.localeCompare(b)and no fixed locale makes output order, and the order of entries in a written baseline file, depend on the machine's ICU locale. That can cause baseline diffs between developers and CI. Use a plain code-unit comparison, orlocaleCompare(b, "en"). - The
stringly-nodepathfix rewritesget_node("A/B")to$A/B. That is the same literal path, which the finding itself calls rename-fragile, so the fix hides the finding without addressing it.--fixalso applies every attached fix regardless of severity. Either:- reword the rule as a style preference, or
- add
--fix-rule <id>, or limit--fixto findings at or above--fail-on.
-
--fixruns before the baseline filter (cli.ts:353-364), so baselined findings are rewritten too. Decide whether that is intended, and document or change it.
Acceptance criteria
- Each item above is either changed or documented, with a test.
Getting started
- Relevant files:
src/cli.ts,src/lint/project.ts,src/baseline.ts,test/cli.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: quality|src/cli.ts|misc
- 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
-
area: cli beginner beginner friendly bug community difficulty: easy dx easy first-timers-only good first issue hacktoberfest help wanted low-hanging fruit mentor available priority: P3 severity: low tech: typescript testing up-for-grabs ux
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
backlog-skill cat:docs documentation effort:s ready-for-agent sev:low
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
LucasSantana-Dev/Lucky#3284 ·
Les mainteneurs répondent en général sous 1 jour
-
.aif still missing from the pipeline and library MIME maps, AUDIO_INPUTS, and search aliasesOuvertearea: backend bug priority: low
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
snapotter-hq/SnapOtter#5194 ·
Les mainteneurs répondent en général sous 1 jour
-
needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
homarr-labs/homarr#7671 ·
Les mainteneurs répondent en général sous 1 jour
-
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