Current section

Files

Jump to
rebar3_lint src rebar3_lint.erl
Raw

src/rebar3_lint.erl

-module(rebar3_lint).
%% The rebar3 plugin architecture has a poorly defined "behaviour"
-elvis([{elvis_style, consistent_ok_error_spec, disable}]).
-export([init/1]).
%% for eating our own dogfood
-export([main/1]).
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.
init(State) ->
{ok, State1} = rebar3_lint_prv:init(State),
{ok, State1}.
%% @private
main([]) ->
ok = application:load(elvis_core),
case elvis_core:rock() of
ok -> true;
_ -> elvis_utils:erlang_halt(1)
end.