ocaml/dune

disable auto formatting for specific dune files

Aberta

#10.862 aberto em 30 de ago. de 2024

 (1 comentário) (0 reação) (0 responsável)OCaml (478 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (1.882 estrelas)
Métricas de merge de PR
 (Mesclagem média 1d 20h) (345 fundiu PRs em 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.

Guia do colaborador