OCaml: Add formatting configuration
This commit is contained in:
parent
1bfddc109a
commit
3fc5e6341f
2 changed files with 10 additions and 2 deletions
8
ocaml/.ocamlformat
Normal file
8
ocaml/.ocamlformat
Normal 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
|
||||||
|
|
@ -11,8 +11,8 @@ test :
|
||||||
format :
|
format :
|
||||||
dune fmt; dune promote
|
dune fmt; dune promote
|
||||||
|
|
||||||
check-format :
|
format-check fmt-ck :
|
||||||
dune build fmt
|
dune fmt --preview
|
||||||
|
|
||||||
cover :
|
cover :
|
||||||
find . -name '*.coverage' -exec rm -v '{}' ';'
|
find . -name '*.coverage' -exec rm -v '{}' ';'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue