Enable ocamlformat for parts of hphp/hack
commit939c96b141eb9ba29ab25999c52197ee6427b70f
authorWilfred Hughes <wilfred@fb.com>
Fri, 26 Jul 2019 10:36:45 +0000 (26 03:36 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 26 Jul 2019 10:40:48 +0000 (26 03:40 -0700)
tree62eadcc9241fe7a8558408ce8752fa80488342a1
parente6c5f046ce90c1ac74b26ad5e72c4e603e903c25
Enable ocamlformat for parts of hphp/hack

Summary:
Enable `ocamlformat` for `hphp/hack`.

Since the codebase is large and not consistently formatted today, only format the AST and AAST directories. For the others, leave a `.ocamlformat` that disables formatting in that directory. This also ensures ensures that any new directories will be formatted in this style.

Configure using a `.ocamlformat` that's close the current style to minimise code churn.

Reviewed By: jewelpit

Differential Revision: D16421601

fbshipit-source-id: 7c71aa5fd295f6163a63fd10112da2042c1234ad
96 files changed:
hphp/hack/.ocamlformat [new file with mode: 0644]
hphp/hack/src/ai/.ocamlformat [new file with mode: 0644]
hphp/hack/src/annotated_ast/aast.ml
hphp/hack/src/annotated_ast/aast_defs.ml
hphp/hack/src/annotated_ast/aast_defs_visitors_ancestors.ml
hphp/hack/src/annotated_ast/aast_mapper.ml
hphp/hack/src/annotated_ast/ast_to_aast.ml
hphp/hack/src/ast/ast.ml
hphp/hack/src/ast/ast_defs.ml
hphp/hack/src/ast/ast_defs_visitors_ancestors.ml
hphp/hack/src/ast/ast_utils.ml
hphp/hack/src/ast/ast_visitor.ml
hphp/hack/src/ast/namespace_env.ml
hphp/hack/src/client/.ocamlformat [new file with mode: 0644]
hphp/hack/src/common/.ocamlformat [new file with mode: 0644]
hphp/hack/src/config/.ocamlformat [new file with mode: 0644]
hphp/hack/src/decl/.ocamlformat [new file with mode: 0644]
hphp/hack/src/deps/.ocamlformat [new file with mode: 0644]
hphp/hack/src/dfind/.ocamlformat [new file with mode: 0644]
hphp/hack/src/diff/.ocamlformat [new file with mode: 0644]
hphp/hack/src/dune_config/.ocamlformat [new file with mode: 0644]
hphp/hack/src/errors/.ocamlformat [new file with mode: 0644]
hphp/hack/src/facts/.ocamlformat [new file with mode: 0644]
hphp/hack/src/find/.ocamlformat [new file with mode: 0644]
hphp/hack/src/fsevents/.ocamlformat [new file with mode: 0644]
hphp/hack/src/fsnotify/.ocamlformat [new file with mode: 0644]
hphp/hack/src/fsnotify_darwin/.ocamlformat [new file with mode: 0644]
hphp/hack/src/fsnotify_linux/.ocamlformat [new file with mode: 0644]
hphp/hack/src/fsnotify_win/.ocamlformat [new file with mode: 0644]
hphp/hack/src/gen_deps/.ocamlformat [new file with mode: 0644]
hphp/hack/src/globals/.ocamlformat [new file with mode: 0644]
hphp/hack/src/hackfmt/.ocamlformat [new file with mode: 0644]
hphp/hack/src/heap/.ocamlformat [new file with mode: 0644]
hphp/hack/src/hh_matcher/.ocamlformat [new file with mode: 0644]
hphp/hack/src/hhbc/.ocamlformat [new file with mode: 0644]
hphp/hack/src/hhi/.ocamlformat [new file with mode: 0644]
hphp/hack/src/ide_rpc/.ocamlformat [new file with mode: 0644]
hphp/hack/src/injection/.ocamlformat [new file with mode: 0644]
hphp/hack/src/libancillary/.ocamlformat [new file with mode: 0644]
hphp/hack/src/monitor/.ocamlformat [new file with mode: 0644]
hphp/hack/src/naming/.ocamlformat [new file with mode: 0644]
hphp/hack/src/options/.ocamlformat [new file with mode: 0644]
hphp/hack/src/parser/.ocamlformat [new file with mode: 0644]
hphp/hack/src/pocket_universes/.ocamlformat [new file with mode: 0644]
hphp/hack/src/ppx/.ocamlformat [new file with mode: 0644]
hphp/hack/src/procs/.ocamlformat [new file with mode: 0644]
hphp/hack/src/providers/.ocamlformat [new file with mode: 0644]
hphp/hack/src/search/.ocamlformat [new file with mode: 0644]
hphp/hack/src/server/.ocamlformat [new file with mode: 0644]
hphp/hack/src/socket/.ocamlformat [new file with mode: 0644]
hphp/hack/src/stubs/.ocamlformat [new file with mode: 0644]
hphp/hack/src/third-party/.ocamlformat [new file with mode: 0644]
hphp/hack/src/typing/.ocamlformat [new file with mode: 0644]
hphp/hack/src/utils/.ocamlformat [new file with mode: 0644]
hphp/hack/src/version/.ocamlformat [new file with mode: 0644]
hphp/hack/src/watchman/.ocamlformat [new file with mode: 0644]
hphp/hack/src/watchman_event_watcher/.ocamlformat [new file with mode: 0644]
hphp/hack/test/autocomplete/.ocamlformat [new file with mode: 0644]
hphp/hack/test/color/.ocamlformat [new file with mode: 0644]
hphp/hack/test/coverage/.ocamlformat [new file with mode: 0644]
hphp/hack/test/cst_search/.ocamlformat [new file with mode: 0644]
hphp/hack/test/deps/.ocamlformat [new file with mode: 0644]
hphp/hack/test/deregister/.ocamlformat [new file with mode: 0644]
hphp/hack/test/dot_hack/.ocamlformat [new file with mode: 0644]
hphp/hack/test/dump_inheritance/.ocamlformat [new file with mode: 0644]
hphp/hack/test/dumpsymbolinfo/.ocamlformat [new file with mode: 0644]
hphp/hack/test/dynamic_view/.ocamlformat [new file with mode: 0644]
hphp/hack/test/emitter/.ocamlformat [new file with mode: 0644]
hphp/hack/test/error_formatting/.ocamlformat [new file with mode: 0644]
hphp/hack/test/errors/.ocamlformat [new file with mode: 0644]
hphp/hack/test/ffp_autocomplete/.ocamlformat [new file with mode: 0644]
hphp/hack/test/find_local/.ocamlformat [new file with mode: 0644]
hphp/hack/test/find_refs/.ocamlformat [new file with mode: 0644]
hphp/hack/test/full_fidelity/.ocamlformat [new file with mode: 0644]
hphp/hack/test/hackfmt/.ocamlformat [new file with mode: 0644]
hphp/hack/test/highlight_refs/.ocamlformat [new file with mode: 0644]
hphp/hack/test/ident/.ocamlformat [new file with mode: 0644]
hphp/hack/test/identify_symbol/.ocamlformat [new file with mode: 0644]
hphp/hack/test/incremental/.ocamlformat [new file with mode: 0644]
hphp/hack/test/infer_return_types/.ocamlformat [new file with mode: 0644]
hphp/hack/test/integration/.ocamlformat [new file with mode: 0644]
hphp/hack/test/integration_ml/.ocamlformat [new file with mode: 0644]
hphp/hack/test/lint/.ocamlformat [new file with mode: 0644]
hphp/hack/test/mro/.ocamlformat [new file with mode: 0644]
hphp/hack/test/nast/.ocamlformat [new file with mode: 0644]
hphp/hack/test/ounit/.ocamlformat [new file with mode: 0644]
hphp/hack/test/outline/.ocamlformat [new file with mode: 0644]
hphp/hack/test/pocket_universes/.ocamlformat [new file with mode: 0644]
hphp/hack/test/procs/.ocamlformat [new file with mode: 0644]
hphp/hack/test/rust/.ocamlformat [new file with mode: 0644]
hphp/hack/test/tast/.ocamlformat [new file with mode: 0644]
hphp/hack/test/tools/.ocamlformat [new file with mode: 0644]
hphp/hack/test/typecheck/.ocamlformat [new file with mode: 0644]
hphp/hack/test/unit/.ocamlformat [new file with mode: 0644]
hphp/hack/test/utils/.ocamlformat [new file with mode: 0644]
hphp/hack/test/watchman/.ocamlformat [new file with mode: 0644]