ocaml/dune

use a custom command to format dune files

Ouverte

#10 863 ouverte le 30 août 2024

 (3 commentaires) (1 réaction) (0 personne assignée)OCaml (478 forks)github user discovery
help wantedproposal

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

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.

Guide contributeur