From a601b9dc629ad3c009d7070fc43ebd49d4c9c937 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Wed, 17 Jan 2024 22:55:51 +0000 Subject: [PATCH] Allow errorless consumption by rebar3_lint 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 ad84913..40f8d1e 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),