aboutsummaryrefslogtreecommitdiff
path: root/.ocamlformat
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-03-30 19:02:21 +0200
committerGaëtan Gilbert2020-03-30 19:02:55 +0200
commit2b78aa38c2c75f99eaff3e3b1575eab3d5c76677 (patch)
tree4ee762a9cbe99e4c6216a41593db011f1aeb6a3e /.ocamlformat
parentd2f21a119fea99d8621fb227b82fa8a1bf17d9fb (diff)
ocamlformat: use whitelist instead of blacklist
Using disable=true in .ocamlformat and disable=false in sub .ocamlformat works fine. Note that disable=true must be after the `profile` setting otherwise it gets reset
Diffstat (limited to '.ocamlformat')
-rw-r--r--.ocamlformat5
1 files changed, 5 insertions, 0 deletions
diff --git a/.ocamlformat b/.ocamlformat
index 6d73a5297f..4480935e3b 100644
--- a/.ocamlformat
+++ b/.ocamlformat
@@ -1,5 +1,10 @@
version=0.13.0
profile=ocamlformat
+
+# to enable a whole directory, put "disable=false" in dir/.ocamlformat
+# to enable specific files put them in .ocamlformat-enable
+disable=true
+
module-item-spacing=compact
sequence-style=terminator
cases-exp-indent=2