Skip to content

Commit

Permalink
[ocamlformat] Move .ocamlformat config file to the project root
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jberdine authored and facebook-github-bot committed Apr 2, 2019
1 parent 7be696a commit de1ae90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .ocamlformat

This file was deleted.

1 change: 1 addition & 0 deletions .ocamlformat
4 changes: 4 additions & 0 deletions infer/src/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
profile = ocamlformat
let-binding-spacing = sparse
margin = 100
version = 0.9

0 comments on commit de1ae90

Please sign in to comment.