diff options
| author | Emilio Jesus Gallego Arias | 2019-12-08 14:26:27 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-12-13 14:15:36 +0100 |
| commit | 4407f71ee45f98499b7ae8b533614dde5b877795 (patch) | |
| tree | e32a1f524d72200b8e7404a7268cd10003e62688 /dev | |
| parent | 202d2314dbfb6d26e635b962916f0e94958f4297 (diff) | |
[fmt] [dune] Add ocamlformat configuration.
For now we don't enable it in any source file, neither on dune files.
`lint-repository` has been updated so it will check `dune build @fmt`
returns 0.
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/doc/README.md | 4 | ||||
| -rwxr-xr-x | dev/lint-repository.sh | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/dev/doc/README.md b/dev/doc/README.md index bc281e0d94..ba53605b0e 100644 --- a/dev/doc/README.md +++ b/dev/doc/README.md @@ -43,8 +43,12 @@ To learn how to run the test suite, you can read ## Development environment + tooling + - [`Merlin`](https://github.com/ocaml/merlin) for autocomplete. - [Wiki pages on tooling containing `emacs`, `vim`, and `git` information](https://github.com/coq/coq/wiki/DevelSetup) +- [`ocamlformat`](https://github.com/ocaml-ppx/ocamlformat) provides + support for automatic formatting of OCaml code. To use it please run + `dune build @fmt`, see `ocamlformat`'s documentation for more help. ## A note about rlwrap diff --git a/dev/lint-repository.sh b/dev/lint-repository.sh index 2e8a7455de..224601bbce 100755 --- a/dev/lint-repository.sh +++ b/dev/lint-repository.sh @@ -32,4 +32,7 @@ find . "(" -path ./.git -prune ")" -o -type f -print0 | echo Checking overlays dev/tools/check-overlays.sh || CODE=1 +echo Checking ocamlformat +dune build @fmt || CODE=1 + exit $CODE |
