Module rebar3_formatter

Automatic formatter for Erlang modules.

Description

Automatic formatter for Erlang modules

Data Types

opts()

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()}

Function Index

format/2Format a file.
remove_line_numbers/1Removes line numbers from ASTs to allow for "semantic" comparison.

Function Details

format/2

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/1

remove_line_numbers(AST) -> any()

Removes line numbers from ASTs to allow for "semantic" comparison


Generated by EDoc