View Source elvis_style (elvis_core v3.2.5)

Summary

Functions

Types

Link to this type

atom_naming_convention_config/0

View Source
-type atom_naming_convention_config() ::
          #{ignore => [ignorable()], regex => string(), enclosed_atoms => same | string()}.
Link to this type

behaviour_spelling_config/0

View Source
-type behaviour_spelling_config() :: #{ignore => [ignorable()], spelling => behaviour | behavior}.
Link to this type

consistent_variable_casing_config/0

View Source
-type consistent_variable_casing_config() :: #{ignore => [ignorable()]}.
-type data_type() :: record | map | tuple.
Link to this type

dont_repeat_yourself_config/0

View Source
-type dont_repeat_yourself_config() :: #{ignore => [ignorable()], min_complexity => non_neg_integer()}.
-type empty_rule_config() :: #{ignore => [ignorable()]}.
Link to this type

function_naming_convention_config/0

View Source
-type function_naming_convention_config() :: #{ignore => [ignorable()], regex => string()}.
-type function_spec() :: {module(), atom(), arity()} | {module(), atom()}.
-type god_modules_config() :: #{ignore => [ignorable()], limit => integer()}.
-type ignorable() :: module() | {module(), atom()} | {module(), atom(), arity()}.
-type macro_names_config() :: #{ignore => [ignorable()], regex => string()}.
Link to this type

max_anonymous_function_arity_config/0

View Source
-type max_anonymous_function_arity_config() :: #{max_arity => non_neg_integer()}.
Link to this type

max_function_arity_config/0

View Source
-type max_function_arity_config() :: #{max_arity => non_neg_integer()}.
Link to this type

max_function_length_config/0

View Source
-type max_function_length_config() ::
          #{ignore => [ignorable()],
            max_length => non_neg_integer(),
            count_comments => boolean(),
            count_whitespace => boolean()}.
Link to this type

max_module_length_config/0

View Source
-type max_module_length_config() ::
          #{ignore => [ignorable()],
            count_comments => boolean(),
            count_whitespace => boolean(),
            max_length => integer()}.
Link to this type

module_naming_convention_config/0

View Source
-type module_naming_convention_config() :: #{ignore => [ignorable()], regex => string()}.
Link to this type

nesting_level_config/0

View Source
-type nesting_level_config() :: #{ignore => [ignorable()], level => integer()}.
-type no_author_config() :: #{ignore => [ignorable()]}.
Link to this type

no_block_expressions_config/0

View Source
-type no_block_expressions_config() :: #{ignore => [ignorable()]}.
-type no_call_config() :: #{ignore => [ignorable()], no_call_functions => [function_spec()]}.
Link to this type

no_catch_expressions_config/0

View Source
-type no_catch_expressions_config() :: #{ignore => [ignorable()]}.
Link to this type

no_common_caveats_call_config/0

View Source
-type no_common_caveats_call_config() ::
          #{ignore => [ignorable()], caveat_functions => [function_spec()]}.
Link to this type

no_debug_call_config/0

View Source
-type no_debug_call_config() :: #{ignore => [ignorable()], debug_functions => [function_spec()]}.
-type no_import_config() :: #{ignore => [ignorable()]}.
-type no_macros_config() :: #{allow => [atom()], ignore => [ignorable()]}.
Link to this type

no_match_in_condition_config/0

View Source
-type no_match_in_condition_config() :: #{ignore => [ignorable()]}.
Link to this type

no_single_clause_case_config/0

View Source
-type no_single_clause_case_config() :: #{ignore => [ignorable()]}.
Link to this type

no_space_after_pound_config/0

View Source
-type no_space_after_pound_config() :: #{ignore => [ignorable()]}.
-type no_space_config() :: #{ignore => [ignorable()], rules => [{right | left, string()}]}.
-type no_specs_config() :: #{allow => [atom()], ignore => [ignorable()]}.
-type no_types_config() :: #{allow => [atom()], ignore => [ignorable()]}.
Link to this type

numeric_format_config/0

View Source
-type numeric_format_config() ::
          #{ignore => [ignorable()],
            regex => string(),
            int_regex => same | string(),
            float_regex => same | string()}.
Link to this type

operator_spaces_config/0

View Source
-type operator_spaces_config() :: #{ignore => [ignorable()], rules => [{right | left, string()}]}.
Link to this type

param_pattern_matching_config/0

View Source
-type param_pattern_matching_config() :: #{ignore => [ignorable()], side => left | right}.
Link to this type

private_data_type_config/0

View Source
-type private_data_type_config() :: #{apply_to => [data_type()]}.
Link to this type

variable_naming_convention_config/0

View Source
-type variable_naming_convention_config() :: #{ignore => [ignorable()], regex => string()}.

Functions

Link to this function

always_shortcircuit(Config, Target, RuleConfig)

View Source
-spec always_shortcircuit(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                             [elvis_result:item()].
Link to this function

atom_naming_convention(Config, Target, RuleConfig)

View Source
Link to this function

behaviour_spelling(Config, Target, RuleConfig)

View Source
Link to this function

consistent_generic_type(Config, Target, RuleConfig)

View Source
-spec consistent_generic_type(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                                 [elvis_result:item()].
Link to this function

consistent_variable_casing(Config, Target, RuleConfig)

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

dont_repeat_yourself(Config, Target, RuleConfig)

View Source
Link to this function

export_used_types(Config, Target, RuleConfig)

View Source
-spec export_used_types(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                           [elvis_result:item()].
Link to this function

function_naming_convention(Config, Target, RuleConfig)

View Source
Link to this function

god_modules(Config, Target, RuleConfig)

View Source
Link to this function

invalid_dynamic_call(Config, Target, RuleConfig)

View Source
-spec invalid_dynamic_call(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                              [elvis_result:item()].
Link to this function

macro_module_names(Config, Target, RuleConfig)

View Source
-spec macro_module_names(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                            [elvis_result:item()].
Link to this function

macro_names(Config, Target, RuleConfig)

View Source
Link to this function

max_anonymous_function_arity(Config, Target, RuleConfig)

View Source
Link to this function

max_function_arity(Config, Target, RuleConfig)

View Source
Link to this function

max_function_length(Config, Target, RuleConfig)

View Source
Link to this function

max_module_length(Config, Target, RuleConfig)

View Source
Link to this function

module_naming_convention(Config, Target, RuleConfig)

View Source
Link to this function

nesting_level(Config, Target, RuleConfig)

View Source
Link to this function

no_author(Config, Target, RuleConfig)

View Source
Link to this function

no_behavior_info(Config, Target, RuleConfig)

View Source
Link to this function

no_block_expressions(Config, Target, RuleConfig)

View Source
Link to this function

no_call(Config, Target, RuleConfig)

View Source
Link to this function

no_catch_expressions(Config, Target, RuleConfig)

View Source
Link to this function

no_common_caveats_call(Config, Target, RuleConfig)

View Source
Link to this function

no_debug_call(Config, Target, RuleConfig)

View Source
Link to this function

no_dollar_space(Config, Target, RuleConfig)

View Source
Link to this function

no_if_expression(Config, Target, RuleConfig)

View Source
Link to this function

no_import(Config, Target, RuleConfig)

View Source
Link to this function

no_macros(ElvisConfig, RuleTarget, RuleConfig)

View Source
Link to this function

no_match_in_condition(Config, Target, RuleConfig)

View Source
Link to this function

no_nested_try_catch(Config, Target, RuleConfig)

View Source
-spec no_nested_try_catch(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                             [elvis_result:item()].
Link to this function

no_single_clause_case(Config, Target, RuleConfig)

View Source
Link to this function

no_space(Config, Target, RuleConfig)

View Source
Link to this function

no_space_after_pound(Config, Target, RuleConfig)

View Source
Link to this function

no_spec_with_records(Config, Target, RuleConfig)

View Source
-spec no_spec_with_records(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                              [elvis_result:item()].
Link to this function

no_specs(ElvisConfig, RuleTarget, RuleConfig)

View Source
Link to this function

no_successive_maps(Config, Target, RuleConfig)

View Source
-spec no_successive_maps(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                            [elvis_result:item()].
Link to this function

no_throw(Config, Target, RuleConfig)

View Source
Link to this function

no_types(ElvisConfig, RuleTarget, RuleConfig)

View Source
Link to this function

numeric_format(Config, Target, RuleConfig)

View Source
Link to this function

operator_spaces(Config, Target, RuleConfig)

View Source
Link to this function

option(OptionName, RuleConfig, Rule)

View Source
-spec option(OptionName, RuleConfig, Rule) -> OptionValue
                when
                    OptionName :: atom(),
                    RuleConfig :: elvis_core:rule_config(),
                    Rule :: atom(),
                    OptionValue :: term().
Link to this function

param_pattern_matching(Config, Target, RuleConfig)

View Source
Link to this function

private_data_types(Config, Target, RuleConfig)

View Source
Link to this function

state_record_and_type(Config, Target, RuleConfig)

View Source
-spec state_record_and_type(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                               [elvis_result:item()].
Link to this function

used_ignored_variable(Config, Target, RuleConfig)

View Source
-spec used_ignored_variable(elvis_config:config(), elvis_file:file(), empty_rule_config()) ->
                               [elvis_result:item()].
Link to this function

variable_naming_convention(Config, Target, RuleConfig)

View Source