Skip to content

Commit 47259aa

Browse files
committed
maintenance: prepare repository for ocamlformat
Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent 338912c commit 47259aa

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.ocamlformat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
profile=ocamlformat
2+
indicate-multiline-delimiters=closing-on-separate-line
3+
if-then-else=fit-or-vertical
4+
dock-collection-brackets=true
5+
break-struct=natural
6+
break-separators=before
7+
break-infix=fit-or-vertical
8+
break-infix-before-func=false

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ clean:
2424
doc:
2525
dune build @doc --profile=release
2626

27-
reindent:
28-
git ls-files '*.ml*' | xargs ocp-indent --syntax cstruct -i
27+
format:
28+
dune build @fmt --auto-promote
2929

3030
test:
3131
dune runtest --profile=release

dune-project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
(lang dune 1.4)
1+
(lang dune 1.11)
2+
(using fmt 1.2 (enabled_for ocaml))

0 commit comments

Comments
 (0)