ocaml/dune

disable auto formatting for specific dune files

Open

#10,862 opened on Aug 30, 2024

 (1 comment) (0 reactions) (0 assignees)OCaml (478 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (1,882 stars)
PR merge metrics
 (Avg merge 1d 20h) (345 merged PRs in 30d)

Description

Desired Behavior

In a dune file, having a stanza (formatting disabled) would ensure that the file doesn't get touched when dune build @fmt runs.

We have dune files where the content written by hand is much more readable then when it's being auto formatted. Often because of what is explained in #10861, but not only. In those cases it would be nice to be able to preserve part of a dune file or a whole dune file.

Contributor guide