Skip to main content

rebar.config

%%% rebar3 configuration for the fmt / pretty-expressive engine.
%%%
%%% Engine modules are pure OTP (no runtime deps). PropEr is a test-only dep.
%%% Target: OTP 28 (see %% OTP28+ markers in source for the backport slice).

{erl_opts, [debug_info, warnings_as_errors, warn_unused_import, warn_export_vars]}.

{deps, []}.

{project_plugins, [erlfmt, rebar3_proper, rebar3_hex]}.

{profiles, [
    {test, [
        %% lfe is a TEST-ONLY dep: the slice6 reader bridge reuses LFE's reader
        %% (lfe_io) to read real .lfe files for whole-file latency benchmarking.
        %% src/ stays dependency-free ({deps, []} above is unchanged).
        {deps, [{proper, "1.4.0"}, {lfe, "~> 2.2"}]}
    ]}
]}.

{dialyzer, [
    {warnings, [unmatched_returns, error_handling, unknown]}
]}.

{xref_checks, [
    undefined_function_calls,
    undefined_functions,
    deprecated_function_calls
]}.

{erlfmt, [write, {print_width, 100}]}.