From de1ae90a2726d950eb3786db371428589b0b28ed Mon Sep 17 00:00:00 2001 From: Josh Berdine Date: Tue, 2 Apr 2019 07:00:38 -0700 Subject: [PATCH] [ocamlformat] Move .ocamlformat config file to the project root Summary: Several tools that use ocamlformat look for the "project root" in order to find the config for a given file to format. The project root is inferred by looking in ancestor directories of the input file until one of .git, .hg, or dune-project is found. Since the .ocamlformat config file is currently two directories higher than dune-project, this fails. This diff moves the config file. Reviewed By: jvillard Differential Revision: D14694260 fbshipit-source-id: 2fb51bf30 --- .ocamlformat | 5 +---- infer/src/.ocamlformat | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 120000 .ocamlformat create mode 100644 infer/src/.ocamlformat diff --git a/.ocamlformat b/.ocamlformat deleted file mode 100644 index c7e7d3a96..000000000 --- a/.ocamlformat +++ /dev/null @@ -1,4 +0,0 @@ -profile = ocamlformat -let-binding-spacing = sparse -margin = 100 -version = 0.9 diff --git a/.ocamlformat b/.ocamlformat new file mode 120000 index 000000000..545fa10eb --- /dev/null +++ b/.ocamlformat @@ -0,0 +1 @@ +infer/src/.ocamlformat \ No newline at end of file diff --git a/infer/src/.ocamlformat b/infer/src/.ocamlformat new file mode 100644 index 000000000..c7e7d3a96 --- /dev/null +++ b/infer/src/.ocamlformat @@ -0,0 +1,4 @@ +profile = ocamlformat +let-binding-spacing = sparse +margin = 100 +version = 0.9