-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dune-project not formatted with @fmt #3223
Comments
Indeed. Reading the code in /cc @emillon |
Do you want to submit a PR? |
That's in part intentional, because it does not look to great at the moment (#2291). As explained in that bug, the generic s-expression formatter does not know about any syntax (stanza, records, etc). For dune files it's difficult to have that without adding introspection capabilities to the language (there's no explicit AST), but for |
That makes sense. Since we have a good idea how to add introspection to the language, we should wait for that so that we have a general mechanism. |
It would make sense to treat dune-workspace files at the same time once the formatting of dune-project files is pretty enough to enable. |
When I run
dune build @fmt
, I would expectdune-project
to be checked as well as otherdune
files. Any reason for it not to be checked? I understand that the first line of that file (e.g.(lang dune 2.3)
) is a bit of an exception, but the rest could probably benefit from auto formatting, no?Specifications
dune
(output ofdune --version
): 2.3.1ocaml
(output ofocamlc --version
): 4.09.0The text was updated successfully, but these errors were encountered: