When dune-project exists and project-wise .ocamlformat does not exist, unconfigured default foramtting will be used. (macOS)
Expected Behavior
Use global configuration if it is a project directory and no .ocamlformat file exist. Or, add --auto-adopt-global-config-when-local-absent option.
How to Reproduce
$XDG_CONFIG_HOME/ocamlformat:
profile=janestreet # 'default', 'janestreet', ...
In project directories, i.e., with dune-project file, or even in directories that is not OCaml project but .git exists,
I agree that ocamlformat should use the global configuration when --enable-outside-detected-project and a project is detected but has no configuration.
Describe the bug
When
dune-project
exists and project-wise.ocamlformat
does not exist, unconfigured default foramtting will be used. (macOS)Expected Behavior Use global configuration if it is a project directory and no
.ocamlformat
file exist. Or, add--auto-adopt-global-config-when-local-absent
option.How to Reproduce
$XDG_CONFIG_HOME/ocamlformat
:In project directories, i.e., with
dune-project
file, or even in directories that is not OCaml project but.git
exists,Not in project directories,
See also
2223
2092