Releases: WhatsApp/erlfmt
Releases · WhatsApp/erlfmt
0.5.1
--insert-pragma CLI option
Unicode fixes
v0.4.2 (24.07.2020)
Bug Fixes
--require-pragma
combined with stdio for files with high-codepoint unicode
Rebar 3.14 integration
v0.4.1 (23.07.2020)
Bug Fixes
- Fix dialyzer
--require-pragma
for single-form and non-unicode files- Compiles with rebar3 3.14
Easier Integration with CI
v0.4.0 (23.07.2020)
Enhancements
- require-pragma prints out original file instead of formatting if no pragma is found.
This makes it easier to integrate into a CI pipeline. #57 - Better exceptions #58
- Group imports and exports with similar names on the same line. #65
- Add format_string as a library call. #66
Bug Fixes
Enable integration with IDEs via stdin
New formatting algebra
v0.2.0 (03.06.2020)
New formatting algebra
Switched out formatting algorithm.
This is now based on Elixir's greedy algorithm, instead of a lazy algorithm.
This fixes performance issues with laying out larger tuples.
Bug Fixes
- Preserve empty lines between comments and expressions
- Stop adding unnecessary empty lines between attributes
- Stop indenting list and binary comprehensions unnecessarily
- Fix formatting multiple files from command line
- Ensure all parsable OTP files format cleanly
Enhancements
- Support formatting escripts and "consult" files like rebar.config
- Add
--require-pragma
flag to only format files annotated with@format