Skip to content

fix: resolve pre-existing cofferdam findings#64

Open
TAJD wants to merge 4 commits into
mainfrom
wt/cofferdam-findings-cleanup
Open

fix: resolve pre-existing cofferdam findings#64
TAJD wants to merge 4 commits into
mainfrom
wt/cofferdam-findings-cleanup

Conversation

@TAJD

@TAJD TAJD commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Triaged and fixed all findings from a repo-wide cofferdam check run: a stale suppression, an orphaned export (turned into a genuinely-reused helper param), a long/complex island component (extracted a sub-component), two 2-occurrence duplicate-block findings (suppressed with reasoning rather than forcing an abstraction), an Astro-import false-positive orphan export, and several over-length lines.
  • Also fixes two additional findings that surfaced after rebasing onto main's PROJ-314 group-access epic (a stale suppression and a long line in AccessPending.tsx).

Test plan

  • cofferdam check — 0 findings
  • turbo type-check — 0 errors across all 7 packages
  • Full API vitest suite — 614/619 passing (5 todo, 0 failed)
  • Full web vitest suite — 262/262 passing
  • biome check clean

TAJD and others added 4 commits July 9, 2026 07:03
Fixes the workspace-scoping invariant to reflect group-based project
access (PROJ-311), tightens the lefthook section, dedupes three
near-identical CI-command listings to one canonical block, and removes
a brittle/duplicated spawn-prompt section. Also drops the duplicate D1
bound-parameter-limit paragraph from sql.ts's header comment now that
AGENTS.md points at the code instead of restating it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011hs2GEFcYVcUtQrYTvsgwa
Triaged all findings from `cofferdam check` against the repo:
- removed a stale Consistency.UnusedSuppression on groups.test.ts
- dropped an unused GrantRoleEnum export (Design.OrphanExport)
- gave requireProjectAccess a resource-specific notFoundMessage param
  so it's now genuinely reused by assertIssueProjectVisible instead of
  sitting orphaned (Design.OrphanExport)
- extracted GroupsSection out of GroupManager to fix its
  Readability.LongAndComplex finding
- suppressed the two 2-occurrence Refactor.DuplicateBlock findings in
  groups.ts (removeGroupMember/removeGroupGrant) and sprints.test.ts
  (viewer-cannot-update/delete), with a reason comment rather than
  forcing an abstraction over two call sites
- suppressed GroupManager's default export as a Design.OrphanExport
  false positive (astro imports aren't parsed by cofferdam's import
  graph)
- wrapped 6 over-length lines flagged by Readability.MaxLineLength

Verified with `cofferdam check` (0 findings), `turbo type-check`
(0 errors), and the groups/sprints/issues vitest suites (129 passing).
Rebasing onto main (PROJ-314 group-access epic) pulled in two new
findings:
- a stale Readability.MaxFunctionLength suppression on
  coordination-access.test.ts's describe block (well under the limit)
- a Readability.MaxLineLength overflow in AccessPending.tsx

Verified with `cofferdam check` (0 findings), `turbo type-check`
(0 errors), and the full API vitest suite (614/619, 5 todo, 0 failed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant