Configurable print-width and erlfmt-ignore comment
print-width
is now configurable as a command line parameter #99% erlfmt-ignore
comment ignores the next form and does not format it #98- files are now formatted in parallel #101
- Preserve empty lines around if-like attributes #97
- Don't break multiple clauses with comments #96
- Make try and after always introduce a newline #107
- Do not preserve operator newline with a next break fits expression #104
- New format for multiline fun types #110
- correctly handle type unions inside of multiline containers (such as specs) #90
- new
--insert-pragma
CLI option adds the@format
pragma to all the formatted files that didn't have it before #75 - preserve empty lines in containers #83
- correctly handle
.script
files likerebar.config.script
#79 export_type
is formatted the same asexport
#86- print type unions either all on single line or each type separated by
|
on a separate line #84
--require-pragma
combined with stdio for files with high-codepoint unicode
- Fix dialyzer
--require-pragma
for single-form and non-unicode files- Compiles with rebar3 3.14
- 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
- Preserve empty lines between attributes #67
- Remove space between single clause fun and parens #68
- Allow reading from stdin with command
$ erlfmt -
#46 - Support Erlang version 23.0
- Remove trailing spaces from comments #48
- Make position of return type in specs consistent #47
- Fix some parser failures in OTP #39
- Concat converted from a string also forces breaks #43
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.
- 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
- Support formatting escripts and "consult" files like rebar.config
- Add
--require-pragma
flag to only format files annotated with@format
Initial release