Commit d01115e
committed
CI + CLAUDE.md: shake unused-import baseline gate
Adds a `lake exe shake OpenGALib --no-downstream` step in CI that
counts flagged files and fails the build on growth. Baseline `35`
captures the current import-hygiene debt remaining after the two
recent shake-pass commits (60 → 45 → 35).
Discipline mirrors `EXPECTED_SORRY` and the three linter baselines:
the count only ever decreases. To shrink, apply shake's suggestion to
the flagged file, add explicit imports to any broken downstream
consumers (Mathlib-standard "every file declares its actual
dependencies"), then drop the EXPECTED_SHAKE value.
CLAUDE.md grows a "Unused-import hygiene" section documenting the
tool, the noshake.json baseline, and the known `--fix` quirk
(over-applies on our codebase, so manual / scripted apply with
full-build verification is the supported workflow).1 parent 790d38e commit d01115e
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
0 commit comments