[new release] ocamlformat and ocamlformat-rpc-lib (0.22.3) #21429
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Auto-formatter for OCaml code
CHANGES:
Removed
compact
andsparse
are now removed (Remove profiles 'compact' and 'sparse' ocaml-ppx/ocamlformat#2075, @gpetiot)align-cases
,align-constructors-decl
andalign-variants-decl
are now removed (Remove options 'align-cases', 'align-constructors-decl' and 'align-variants-decl' ocaml-ppx/ocamlformat#2076, @gpetiot)disable-outside-detected-project
is now removed (Remove option 'disable-outside-detected-project' ocaml-ppx/ocamlformat#2077, @gpetiot)Deprecated
Bug fixes
Changes
$XDG_CONFIG_HOME
or$HOME/.config
) is only applied when no project is detected,--enable-outside-detected-project
is set, and no applicable.ocamlformat
file has been found. Global and local configurations are no longer used at the same time. (Do not merge global .ocamlformat config file with project configuration ocaml-ppx/ocamlformat#2039, @gpetiot)ocaml-version
to a fixed version (4.04.0) by default to avoid reproducibility issues and surprising behaviours (Set ocaml-version to a fixed version by default to avoid reproducibility issues and surprising behaviours ocaml-ppx/ocamlformat#2064, @kit-ty-kate)--numeric=X-Y
into--range=X-Y
and--numeric
(flag). For now--range
can only be used with--numeric
. (Distinguish option 'range' from 'numeric' ocaml-ppx/ocamlformat#2073, emacs: apply '--range' option with '--numeric' ocaml-ppx/ocamlformat#2082, @gpetiot)New features
(*= ... *)
for verbatim comments (New syntax (*= ... *) for verbatim comments ocaml-ppx/ocamlformat#2028, @gpetiot)--print-config
displays a warning when an .ocamlformat file defines redundant options (already defined by a profile) (Display a warning for redundant option definitions when using '--print-config' ocaml-ppx/ocamlformat#2084, @gpetiot)