From 59861d41f7f08d3dd5fc508c57a64a22b3b688da Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Thu, 18 Jan 2024 14:26:59 +0000 Subject: [PATCH] Allow errorless consumption by rebar3_lint (#332) This will be required once we want to add more context to errors in the plugin --- src/elvis_core.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elvis_core.erl b/src/elvis_core.erl index ad849130..40f8d1e8 100644 --- a/src/elvis_core.erl +++ b/src/elvis_core.erl @@ -38,7 +38,8 @@ start() -> %%% Rock Command --spec rock(elvis_config:configs()) -> ok | {fail, [elvis_result:file()]}. +-spec rock(elvis_config:configs()) -> + ok | {fail, [{throw, term()} | elvis_result:file() | elvis_result:rule()]}. rock(Config) -> ok = elvis_config:validate(Config), NewConfig = elvis_config:normalize(Config),