ocaml/dune

use a custom command to format dune files

Aperta

#10.863 aperta il 30 ago 2024

 (3 commenti) (1 reazione) (0 assegnatari)OCaml (478 fork)github user discovery
help wantedproposal

Metriche repository

Star
 (1882 stelle)
Metriche merge PR
 (Merge medio 1g 20h) (345 PR mergiate in 30 g)

Descrizione

Desired Behavior

We would like to be able to format dune files using a different tool than dune but still have dune run that tool during dune build @fmt and when requested from ocamllsp.

Example

in dune-project

(formatting
  (dune (command custom_dune_formatter %{dep})))

would lead dune to run custom_dune_formatter path/to/dune when dune tries to format path/to/dune.

Guida contributor