Add `.ocamlformat` Configurations
type:internal
Related issue: #1442 (closed)
This MR adds the .ocamlformat
files to the compiler as per the discussion from slack.
Currently, there is a root .ocamlformat
file in /src
which dictates the formatting the entire compiler. The current configuration
is:
profile=janestreet
let-binding-spacing=sparse
margin=80
which was set by precedent (!1905 (merged), !2000 (merged)). This configuration can (and probably will) be changed in the future.
Various passes can disable formatting (e.g. passes 00-02
and 14-18
) by using the following .ocamlformat
configuration:
disable=true
No formatting is performed in this MR to avoid interfering with currently open/WIP MRs.
Changelog details:
Add .ocamlformat
configs to the compiler
Edited by Alistair O'Brien