-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ocaml-format the codebase #1586
Conversation
Hey @voodoos , I tried your config on #1581 and got weird results: module Blocking =
Make (struct
type 'a t = 'a module O = struct let ( let+ ) x f = f x end
end)
(struct
type in_chan = in_channel
type out_chan = out_channel
let read = Csexp.input
let write = Csexp.to_channel
end) type definition in the same line as nested module definition looks confusing my full config:
You can see that some of the values were correctly overwritten by |
I think this is due to |
I spent some time playing with options.
I think these one are not too bad.
Huge diff still, maybe we could do it progressively ?
Like having each PR format the files they touched ?
One option that makes me hesitate is
cases-exp-indent
:I personally prefer 4 but choosing 2 reduce the diff significantly. From 10,000 additions / deletions to 9,000. Well, that's not so significant 😅.