elvis_result (elvis_core v2.0.0)
Link to this section Summary
Functions
Removes files that don't have any failures.
Link to this section Types
Link to this type
elvis_error/0
-type elvis_error() :: #{error_msg => string(), info => list()}.
Link to this type
elvis_warn/0
-type elvis_warn() :: #{warn_msg => string(), info => list()}.
Link to this type
file/0
-type file() :: #{file => string(), rules => [rule()]}.
Link to this type
item/0
-type item() :: #{message => string(), info => iodata(), line_num => integer()}.
Link to this type
rule/0
-type rule() :: #{scope => atom(), name => atom(), items => [item()]}.
Link to this section Functions
Link to this function
clean(Files)
Link to this function
get_info(_)
-spec get_info(item()) -> string().
Link to this function
get_items(_)
Link to this function
get_line_num(_)
-spec get_line_num(item()) -> integer().
Link to this function
get_message(_)
-spec get_message(item()) -> string().
Link to this function
get_name(_)
-spec get_name(rule()) -> atom().
Link to this function
get_path(_)
-spec get_path(file()) -> string().
Link to this function
get_rules(_)
Link to this function
new(_, Msg, Info)
-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)
-spec new(item, string(), [term()], integer()) -> item().
Link to this function
print_results(Results)
-spec print_results(file() | [elvis_warn()]) -> ok.
Link to this function