ocaml/dune

use a custom command to format dune files

Offen

#10.863 geöffnet am 30.08.2024

 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)OCaml (478 Forks)github user discovery
help wantedproposal

Repository-Metriken

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

Beschreibung

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.

Contributor Guide