ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.21k stars 348 forks source link

ocp-indent: disable unindented else block #6018

Open kit-ty-kate opened 3 weeks ago

kit-ty-kate commented 3 weeks ago
if ... then a else
b

A good portion of the code are indented to use this code pattern and this makes reading that code really hard to me. Forcing the indentation of b in the example above makes it much more readable, especially for large functions. New indented code would look like:

if ... then a else
  b