opts() = #{files => [file:filename_all()], output_dir => undefined | string(), encoding => none | epp:source_encoding(), paper => pos_integer(), ribbon => pos_integer(), break_indent => pos_integer(), sub_indent => pos_integer(), remove_tabs => boolean(), remove_trailing_spaces => boolean(), inline_items => boolean(), inline_expressions => boolean(), preserve_empty_lines => boolean(), newline_after_attributes => boolean()}
format/2 | Format a file. |
remove_line_numbers/1 | Removes line numbers from ASTs to allow for "semantic" comparison. |
format(File::file:filename_all(), Opts::opts()) -> ok
Format a file.
Apply formatting rules to a file containing erlang code.
Use Opts
to configure the formatter.
remove_line_numbers(AST) -> any()
Removes line numbers from ASTs to allow for "semantic" comparison
Generated by EDoc