chore(quality): ocamlformat config + fatal warnings in dev #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/ocaml-quality-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the two cheapest quality gates for the OCaml tree.
What
.ocamlformat— pins the formatter (defaultprofile, v0.29.0).ocamlformatwas already in the devshell but a no-op without this file.dune fmtnow formats/checks the tree.duneenvstanza —-w +a -warn-error +ain the dev profile, so unused vars, non-exhaustive matches, and shadowing become hard build errors. The release profile stays lenient so a stray warning never blocks a build. A few noisy warnings are disabled (4 fragile-match, 40/42/44/45 constructor/label disambiguation, 70 missing-mli — the last lifts when the.mlislice lands).Commits
dune fmtreformat of the existing tree (no behavior change)Verified
dune build @allclean under-warn-error +a— no pre-existing warningsdune fmtcleandune test— 52 tests passFollow-up slice planned:
.mliinterfaces for core modules (num,geom,ast).9fb9ebc309to1ca68ab9dd