306. L0526 ceil_div_formula fixes only a provably positive divisor (2026-11-22)
- Decision.
(a + b - 1) / bwarns with a fix toceil_div(a, b)whenbis a positive literal, or a name or field whose checked type is a range starting at 1 or more (fact table); otherwise there is no finding. - Why. For
b > 0both spellings agree for everya(/rounds down for a positive divisor), so the fix keeps meaning; for otherbthe hand formula is wrong and the rewrite would change output. One finding onspec/std(math.cpsegmented sieve) and none in corpusspec.cp. - Reverse. Delete
crates/cpl-lint/src/rules/ceil.rsandspec/lints/ceil_div_formula/.