Behaviours: rebar3_formatter.
state() = #{opts := proplists:proplist()}
format_file/3 | Format a file. |
init/2 | Initialize the formatter and generate a state that will be passed in when calling other callbacks. |
format_file(File::file:filename_all(), X2::state(), OptionsMap::rebar3_formatter:opts()) -> rebar3_formatter:result()
Format a file. Note that opts() are not the same as the global ones passed in on init/1. These opts include per-file options specified with the -format attribute.
init(Opts::rebar3_formatter:opts(), RebarState::undefined | rebar_state:t()) -> state()
Initialize the formatter and generate a state that will be passed in when calling other callbacks.
To do
Generated by EDoc