ocaml/dune

disable auto formatting for specific dune files

Offen

#10.862 geöffnet am 30.08.2024

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)OCaml (478 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (1.882 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 20h) (345 gemergte PRs in 30 T)

Beschreibung

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