OCaml: Add formatting configuration

This commit is contained in:
Juno Takano 2025-04-15 21:13:32 -03:00
commit 3fc5e6341f
2 changed files with 10 additions and 2 deletions

8
ocaml/.ocamlformat Normal file
View file

@ -0,0 +1,8 @@
version = 0.27.0
margin-check = true
extension-indent = 4
function-indent = 4
type-decl-indent = 4
let-binding-indent = 4
indicate-nested-or-patterns = space
indicate-multiline-delimiters = closing-on-separate-line

View file

@ -11,8 +11,8 @@ test :
format :
dune fmt; dune promote
check-format :
dune build fmt
format-check fmt-ck :
dune fmt --preview
cover :
find . -name '*.coverage' -exec rm -v '{}' ';'