file() = #{path => string(), content => binary()}
line_content() = {integer(), integer()}
check_lines/3 | Takes a binary that holds source code and applies Fun to each line. |
check_lines_with_context/4 | Checks each line calling fun and providing the previous and next lines based on the context tuple {Before, After}. |
check_nodes/3 | Takes a binary that holds source code and applies Fun to each line. |
erlang_halt/1 | This is defined so that it can be mocked for tests. |
error/1 | |
error/2 | |
error_prn/1 | |
error_prn/2 | |
indentation/3 | Takes a line, a character and a count, returning the indentation level invalid if the number of character is not a multiple of count. |
info/1 | |
info/2 | |
notice/1 | |
notice/2 | |
parse_colors/1 | |
to_str/1 | |
warn_prn/2 |
check_lines(Src::binary(), Fun::function(), Args::term()) -> [elvis_result:item()]
Takes a binary that holds source code and applies Fun to each line. Fun takes 2 or 3 arguments (the line as a binary, the line number and the optional supplied Args) and returns 'no_result' or {'ok', Result}.
check_lines_with_context(Src::binary(), Fun::function(), Args::term(), Ctx::line_content()) -> [elvis_result:item()]
Checks each line calling fun and providing the previous and next lines based on the context tuple {Before, After}.
check_nodes(RootNode::ktn_code:tree_node(), Fun::function(), Args::[term()]) -> [elvis_result:item()]
Takes a binary that holds source code and applies Fun to each line. Fun takes 3 arguments (the line as a binary, the line number and the supplied Args) and returns 'no_result' or {'ok', Result}.
erlang_halt(Code::integer()) -> no_return()
This is defined so that it can be mocked for tests.
error(Message::string()) -> ok
error(Message::string(), Args::[term()]) -> ok
error_prn(Message::string()) -> ok
error_prn(Message::string(), Args::[term()]) -> ok
indentation(Line::binary() | string(), Char::char(), Count::integer()) -> invalid | integer()
Takes a line, a character and a count, returning the indentation level invalid if the number of character is not a multiple of count.
info(Message::string()) -> ok
info(Message::string(), Args::[term()]) -> ok
notice(Message::string()) -> ok
notice(Message::string(), Args::[term()]) -> ok
parse_colors(Message::string()) -> string()
to_str(Arg::binary() | list() | atom() | integer()) -> string()
warn_prn(Message::string(), Args::[term()]) -> ok
Generated by EDoc