elvis_text_style (elvis_core v2.0.0)
Link to this section Summary
Functions
Target can be either a filename or the name of a module.
Link to this section Types
Link to this type
line_length_config/0
-type line_length_config() :: #{ignore => [elvis_style:ignorable()], limit => integer(), skip_comments => false | any | whole_line}.
Link to this type
no_trailing_whitespace_config/0
-type no_trailing_whitespace_config() :: #{ignore => [module()], ignore_empty_lines => boolean()}.
Link to this section Functions
Link to this function
default(Rule)
-spec default(Rule :: atom()) -> DefaultRuleConfig :: term().
Link to this function
line_length(Config, Target, RuleConfig)
-spec line_length(elvis_config:config(), elvis_file:file(), line_length_config()) -> [elvis_result:item()].
Link to this function
no_tabs(Config, Target, RuleConfig)
-spec no_tabs(elvis_config:config(), elvis_file:file(), elvis_style:empty_rule_config()) -> [elvis_result:item()].
Link to this function
no_trailing_whitespace(Config, Target, RuleConfig)
-spec no_trailing_whitespace(Config :: elvis_config:config(), Target :: elvis_file:file(), no_trailing_whitespace_config()) -> [elvis_result:item()].