ocaml/dune

use a custom command to format dune files

Open

#10,863 opened on Aug 30, 2024

 (3 comments) (1 reaction) (0 assignees)OCaml (478 forks)github user discovery
help wantedproposal

Repository metrics

Stars
 (1,882 stars)
PR merge metrics
 (Avg merge 1d 20h) (345 merged PRs in 30d)

Description

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