CLI edge cases: rules accepts stray flags, locale-dependent sort, --fix scope
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 6
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/godot-correctness-mcp
-
enhancement good first issue severity: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
TMHSDigital/godot-correctness-mcp#123 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
dependencies good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
TMHSDigital/godot-correctness-mcp#116 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
TMHSDigital/godot-correctness-mcp#107 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
TMHSDigital/godot-correctness-mcp#106 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug good first issue severity: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
TMHSDigital/godot-correctness-mcp#105 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của TMHSDigital/godot-correctness-mcp
Issue tương tự
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openclaw/openclaw#203385 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nwverse/persona#12800 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoft/playwright#44289 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày