View Source elvis_result (elvis_core v3.2.5)

Summary

Types

-type elvis_error() :: #{error_msg => string(), info => list()}.
-type elvis_warn() :: #{warn_msg => string(), info => list()}.
-type file() :: #{file => string(), rules => [rule()]}.
-type item() :: #{message => string(), info => iodata(), line_num => integer()}.
-type rule() :: #{scope => atom(), name => atom(), items => [item()]}.

Functions

-spec clean([file() | rule()]) -> [file() | rule()].

Removes files that don't have any failures.

-spec get_info(item()) -> string().
-spec get_items(rule()) -> [item()].
-spec get_line_num(item()) -> integer().
-spec get_message(item()) -> string().
-spec get_name(rule()) -> atom().
-spec get_path(file()) -> string().
-spec get_rules(file()) -> [rule()].
-spec new(item, string(), [term()]) -> item();
         (rule, {atom(), atom()}, [item()]) -> rule();
         (file, elvis_file:file(), [elvis_error() | rule()]) -> file();
         (error, string(), string()) -> elvis_error();
         (warn, string(), string()) -> elvis_warn().
Link to this function

new(_, Msg, Info, LineNum)

View Source
-spec new(item, string(), [term()], integer()) -> item().
-spec status([file() | rule()]) -> ok | fail.