elvis_text_style (elvis_core v2.0.0)

Link to this section Summary

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

-spec default(Rule :: atom()) -> DefaultRuleConfig :: term().
Link to this function

line_length(Config, Target, RuleConfig)

Target can be either a filename or the name of a module.
Link to this function

no_tabs(Config, Target, RuleConfig)

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()].