328. Lints for hand-written number theory, trees, geometry and counting (2026-11-22)
trial_division (L0561), memo_by_hand (L0554), lca_by_hand (L0555),
cross_by_hand (L0556), binom_by_hand (L0557), runs_by_hand (L0558),
diff_by_hand (L0559) and components_by_dfs (L0560), in
crates/cpl-lint/src/rules/hand_math.rs, point at divisors/factor,
@memo, Rooted.lca, Pt/area2, Comb.choose, runs(), Diff and
components for the shapes the corpus/newcomer/ set marks. All are idiom,
warn, help only: each rewrite moves data into a std type first.
diff_by_hand needs the one-off shift (d[r + 1] or d[l - 1]), so moving an
amount between two cells (excess[v] += f; excess[u] -= f in std/flow.cp)
is not reported. The 2 trial_division findings in spec/std are
std/math.cp's own factor and divisors and enter the baseline. Shared
shape readers moved to rules/shapes.rs. Reverse: delete the eight records,
rules/hand_math.rs and the baseline line.
- 326.5 The search index cap goes from 500,000 to 600,000 bytes gzipped. Fixing
cpl doc's droppedpubput 517 more std items in the reference, and Milestone 1 needs search to find every std item by name; indexing only the last part of a dotted name, not the owner again, saved 10 KB, leaving 538,189 bytes. The index loads when search opens, not with the page, so page weight is unchanged. Reverse: index std member headings by member name only, or drop the core table rows.
- 326.6
cpl-lspdepends oncpl-docforcpl_doc::plain::text, so hover andcpl docshare one reading of doc math and intra-doc links instead of two.cpl-docneeds onlycpl-syntax,cpl-diagandcpl-json, whichcpl-lspalready pulls in. Reverse: moveplainintocpl-diagand drop the edge.