ocaml/dune

disable auto formatting for specific dune files

Ouverte

#10 862 ouverte le 30 août 2024

 (1 commentaire) (0 réaction) (0 personne assignée)OCaml (478 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (1 882 étoiles)
Métriques de merge PR
 (Merge moyen 1j 20h) (345 PRs mergées en 30 j)

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.

Guide contributeur