CLI edge cases: rules accepts stray flags, locale-dependent sort, --fix scope
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- node.js, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 6
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TMHSDigital/godot-correctness-mcp のほかの issue
-
enhancement good first issue severity: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
TMHSDigital/godot-correctness-mcp#123 ·
メンテナーはふだん 2 日以内に返信
-
dependencies good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/godot-correctness-mcp#116 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
TMHSDigital/godot-correctness-mcp#107 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
TMHSDigital/godot-correctness-mcp#106 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue severity: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
TMHSDigital/godot-correctness-mcp#105 ·
メンテナーはふだん 2 日以内に返信
TMHSDigital/godot-correctness-mcp の issue をすべて見る
似ている issue
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openclaw/openclaw#203385 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nwverse/persona#12800 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
microsoft/playwright#44289 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 半日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信