elvis_text_style (elvis_core v4.1.1)

View Source

Summary

Types

line_length_config/0

-type line_length_config() ::
          #{ignore => [elvis_style:ignorable()],
            limit => integer(),
            skip_comments => false | any | whole_line}.

no_trailing_whitespace_config/0

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

Functions

default(RuleName)

-spec default(RuleName :: atom()) -> DefaultRuleConfig :: #{atom() := term()}.

line_length(Config, Target, RuleConfig)

Target can be either a filename or the name of a module.

no_redundant_blank_lines(Config, Target, RuleConfig)

no_tabs(Config, Target, RuleConfig)

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

prefer_unquoted_atoms(Config, Target, RuleConfig)