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

Function Index

format/2Format a file.

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.


Generated by EDoc