[GH-ISSUE #173] chore: clean knip config noise and redundant ignored entries #120

Closed
opened 2026-10-15 18:21:18 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @morluto on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/173

Symptom

npm run knip repeatedly reports redundant/misleading config entries:

  • .codex/** / .devin/** in ignore
  • redundant entry patterns for scripts/rea.mjs and scripts/scan-todos.mjs
  • redundant project entry vitest.config.ts

Evidence

From current local run:

  • .codex/** knip.json Remove from ignore
  • .devin/** knip.json Remove from ignore
  • scripts/rea.mjs knip.json Remove redundant entry pattern
  • scripts/scan-todos.mjs knip.json Remove redundant entry pattern
  • vitest.config.ts knip.json Remove redundant project pattern

Impact

Current config requires non-trivial cleanup to keep dead-code checks actionable. Repetitive false-positive noise slows future dependency audits and reduces trust in Knip signal quality.

Suggested fix

Treat the four entries as noise and simplify knip.json accordingly:

  • remove .codex/** and .devin/** if they are already excluded via project scope
  • remove redundant script and project patterns to express intent directly.
Originally created by @morluto on GitHub (Jul 14, 2026). Original GitHub issue: https://github.com/morluto/rea/issues/173 ## Symptom `npm run knip` repeatedly reports redundant/misleading config entries: - `.codex/**` / `.devin/**` in `ignore` - redundant entry patterns for `scripts/rea.mjs` and `scripts/scan-todos.mjs` - redundant project entry `vitest.config.ts` ## Evidence From current local run: - `.codex/** knip.json Remove from ignore` - `.devin/** knip.json Remove from ignore` - `scripts/rea.mjs knip.json Remove redundant entry pattern` - `scripts/scan-todos.mjs knip.json Remove redundant entry pattern` - `vitest.config.ts knip.json Remove redundant project pattern` ## Impact Current config requires non-trivial cleanup to keep dead-code checks actionable. Repetitive false-positive noise slows future dependency audits and reduces trust in Knip signal quality. ## Suggested fix Treat the four entries as noise and simplify `knip.json` accordingly: - remove `.codex/**` and `.devin/**` if they are already excluded via project scope - remove redundant script and project patterns to express intent directly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#120
No description provided.