View Source elvis_style (elvis_core v3.2.5)
Summary
Types
-type behaviour_spelling_config() :: #{ignore => [ignorable()], spelling => behaviour | behavior}.
-type consistent_variable_casing_config() :: #{ignore => [ignorable()]}.
-type data_type() :: record | map | tuple.
-type dont_repeat_yourself_config() :: #{ignore => [ignorable()], min_complexity => non_neg_integer()}.
-type empty_rule_config() :: #{ignore => [ignorable()]}.
-type max_anonymous_function_arity_config() :: #{max_arity => non_neg_integer()}.
-type max_function_arity_config() :: #{max_arity => non_neg_integer()}.
-type max_function_length_config() :: #{ignore => [ignorable()], max_length => non_neg_integer(), count_comments => boolean(), count_whitespace => boolean()}.
-type no_author_config() :: #{ignore => [ignorable()]}.
-type no_block_expressions_config() :: #{ignore => [ignorable()]}.
-type no_call_config() :: #{ignore => [ignorable()], no_call_functions => [function_spec()]}.
-type no_catch_expressions_config() :: #{ignore => [ignorable()]}.
-type no_common_caveats_call_config() :: #{ignore => [ignorable()], caveat_functions => [function_spec()]}.
-type no_debug_call_config() :: #{ignore => [ignorable()], debug_functions => [function_spec()]}.
-type no_import_config() :: #{ignore => [ignorable()]}.
-type no_match_in_condition_config() :: #{ignore => [ignorable()]}.
-type no_single_clause_case_config() :: #{ignore => [ignorable()]}.
-type no_space_after_pound_config() :: #{ignore => [ignorable()]}.
-type param_pattern_matching_config() :: #{ignore => [ignorable()], side => left | right}.
-type private_data_type_config() :: #{apply_to => [data_type()]}.
Functions
-spec always_shortcircuit(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec atom_naming_convention(elvis_config:config(), elvis_file:file(), atom_naming_convention_config()) -> [elvis_result:item()].
-spec behaviour_spelling(elvis_config:config(), elvis_file:file(), behaviour_spelling_config()) -> [elvis_result:item()].
-spec consistent_generic_type(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec consistent_variable_casing(elvis_config:config(), elvis_file:file(), consistent_variable_casing_config()) -> [elvis_result:item()].
-spec dont_repeat_yourself(elvis_config:config(), elvis_file:file(), dont_repeat_yourself_config()) -> [elvis_result:item()].
-spec export_used_types(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec function_naming_convention(elvis_config:config(), elvis_file:file(), function_naming_convention_config()) -> [elvis_result:item()].
-spec god_modules(elvis_config:config(), elvis_file:file(), god_modules_config()) -> [elvis_result:item()].
-spec invalid_dynamic_call(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec macro_module_names(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec macro_names(elvis_config:config(), elvis_file:file(), macro_names_config()) -> [elvis_result:item()].
-spec max_anonymous_function_arity(elvis_config:config(), elvis_file:file(), max_anonymous_function_arity_config()) -> [elvis_result:item()].
-spec max_function_arity(elvis_config:config(), elvis_file:file(), max_function_arity_config()) -> [elvis_result:item()].
-spec max_function_length(elvis_config:config(), elvis_file:file(), max_function_length_config()) -> [elvis_result:item()].
-spec max_module_length(elvis_config:config(), elvis_file:file(), max_module_length_config()) -> [elvis_result:item()].
-spec module_naming_convention(elvis_config:config(), elvis_file:file(), module_naming_convention_config()) -> [elvis_result:item()].
-spec nesting_level(elvis_config:config(), elvis_file:file(), nesting_level_config()) -> [elvis_result:item()].
-spec no_author(elvis_config:config(), elvis_file:file(), no_author_config()) -> [elvis_result:item()].
-spec no_behavior_info(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec no_block_expressions(elvis_config:config(), elvis_file:file(), no_block_expressions_config()) -> [elvis_result:item()].
-spec no_call(elvis_config:config(), elvis_file:file(), no_call_config()) -> [elvis_result:item()].
-spec no_catch_expressions(elvis_config:config(), elvis_file:file(), no_catch_expressions_config()) -> [elvis_result:item()].
-spec no_common_caveats_call(elvis_config:config(), elvis_file:file(), no_common_caveats_call_config()) -> [elvis_result:item()].
-spec no_debug_call(elvis_config:config(), elvis_file:file(), no_debug_call_config()) -> [elvis_result:item()].
-spec no_dollar_space(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec no_if_expression(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec no_import(elvis_config:config(), elvis_file:file(), no_import_config()) -> [elvis_result:item()].
-spec no_macros(elvis_config:config(), elvis_file:file(), no_macros_config()) -> [elvis_result:item()].
-spec no_match_in_condition(elvis_config:config(), elvis_file:file(), no_match_in_condition_config()) -> [elvis_result:item()].
-spec no_nested_try_catch(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec no_single_clause_case(elvis_config:config(), elvis_file:file(), no_single_clause_case_config()) -> [elvis_result:item()].
-spec no_space(elvis_config:config(), elvis_file:file(), no_space_config()) -> [elvis_result:item()].
-spec no_space_after_pound(elvis_config:config(), elvis_file:file(), no_space_after_pound_config()) -> [elvis_result:item()].
-spec no_spec_with_records(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec no_specs(elvis_config:config(), elvis_file:file(), no_specs_config()) -> [elvis_result:item()].
-spec no_successive_maps(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec no_throw(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec no_types(elvis_config:config(), elvis_file:file(), no_types_config()) -> [elvis_result:item()].
-spec numeric_format(elvis_config:config(), elvis_file:file(), numeric_format_config()) -> [elvis_result:item()].
-spec operator_spaces(elvis_config:config(), elvis_file:file(), operator_spaces_config()) -> [elvis_result:item()].
-spec option(OptionName, RuleConfig, Rule) -> OptionValue when OptionName :: atom(), RuleConfig :: elvis_core:rule_config(), Rule :: atom(), OptionValue :: term().
-spec param_pattern_matching(elvis_config:config(), elvis_file:file(), param_pattern_matching_config()) -> [elvis_result:item()].
-spec private_data_types(elvis_config:config(), elvis_file:file(), private_data_type_config()) -> [elvis_result:item()].
-spec state_record_and_type(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec used_ignored_variable(elvis_config:config(), elvis_file:file(), empty_rule_config()) -> [elvis_result:item()].
-spec variable_naming_convention(elvis_config:config(), elvis_file:file(), variable_naming_convention_config()) -> [elvis_result:item()].