Skip to content

Commit 59861d4

Browse files
Allow errorless consumption by rebar3_lint (#332)
This will be required once we want to add more context to errors in the plugin
1 parent 68e4d50 commit 59861d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/elvis_core.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ start() ->
3838

3939
%%% Rock Command
4040

41-
-spec rock(elvis_config:configs()) -> ok | {fail, [elvis_result:file()]}.
41+
-spec rock(elvis_config:configs()) ->
42+
ok | {fail, [{throw, term()} | elvis_result:file() | elvis_result:rule()]}.
4243
rock(Config) ->
4344
ok = elvis_config:validate(Config),
4445
NewConfig = elvis_config:normalize(Config),

0 commit comments

Comments
 (0)