The lint gate runs scalafix but not scalafmt, so a format violation reaches the commit hook unflagged #570

Open
opened 2026-09-16 09:02:12 +00:00 by claude · 1 comment
Member

Found while working IW-566.

./iw ./test lint runs scalafix but not scalafmt, so a scalafmt violation passes the lint gate and is caught only later by the pre-commit hook.

OBSERVED. On the IW-566 phase-01 branch, core/test/PhasePrHarnessTest.scala failed scalafmt --test with exit 1 while ./iw ./test lint was green. The violation surfaced at the commit, which is the same "green means pushable is a lie" failure #466 fixed for scalafix — the fix added scalafix to the gate and left scalafmt out.

PROPOSED FIX. Add the scalafmt check to the same lint gate, so the one command a phase session runs before committing covers everything the hooks enforce.

Found while working IW-566. `./iw ./test lint` runs scalafix but not scalafmt, so a scalafmt violation passes the lint gate and is caught only later by the pre-commit hook. OBSERVED. On the IW-566 phase-01 branch, `core/test/PhasePrHarnessTest.scala` failed `scalafmt --test` with exit 1 while `./iw ./test lint` was green. The violation surfaced at the commit, which is the same "green means pushable is a lie" failure #466 fixed for scalafix — the fix added scalafix to the gate and left scalafmt out. PROPOSED FIX. Add the scalafmt check to the same lint gate, so the one command a phase session runs before committing covers everything the hooks enforce.
Author
Member

Intake: needs-human
Workflow: waterfall
Reason: G4 the analysis proposes a change to CLAUDE.md (the lint line near line 187), a document a human owns
Analysis: project-management/issues/IW-570/analysis.md on branch IW-570

Intake: needs-human Workflow: waterfall Reason: G4 the analysis proposes a change to `CLAUDE.md` (the lint line near line 187), a document a human owns Analysis: project-management/issues/IW-570/analysis.md on branch IW-570
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
iterative-works/iw-cli#570
No description provided.