View Source elvis_text_style (elvis_core v3.2.1)

Summary

Types

-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

View Source
-type no_trailing_whitespace_config() :: #{ignore => [module()], ignore_empty_lines => boolean()}.

Functions

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

line_length(Config, Target, RuleConfig)

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

no_tabs(Config, Target, RuleConfig)

View Source
Link to this function

no_trailing_whitespace(Config, Target, RuleConfig)

View Source
-spec no_trailing_whitespace(Config :: elvis_config:config(),
                       Target :: elvis_file:file(),
                       no_trailing_whitespace_config()) ->
                          [elvis_result:item()].