View Source erlfmt_formatter (rebar3_format v1.3.0)

Formatter to integrate with erlfmt.

Link to this section Summary

Functions

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.

Link to this section Functions

Link to this function

format_file(File, _, OptionsMap)

View Source
-spec format_file(file:filename_all(), nostate, 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.
-spec init(rebar3_formatter:opts(), undefined | rebar_state:t()) -> nostate.