Packages
elvis_core
1.0.0
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
retired
4.2.3
4.2.2
4.2.1
4.2.0
4.1.1
4.1.0
4.0.0
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.0
3.0.1
3.0.0
2.0.1
2.0.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.7.0
0.6.1
0.6.0
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
Core library for the Erlang style reviewer
Current section
Files
Jump to
Current section
Files
src/elvis_rulesets.erl
-module(elvis_rulesets).
-export([rules/1]).
-spec rules(Group::atom()) -> [elvis_core:rule()].
rules(erl_files) ->
lists:map(
fun ({Mod, Rule}) ->
{Mod, Rule, Mod:default(Rule)}
end,
[ {elvis_text_style, line_length}
, {elvis_text_style, no_tabs}
, {elvis_text_style, no_trailing_whitespace}
, {elvis_style, macro_names}
, {elvis_style, macro_module_names}
, {elvis_style, operator_spaces}
, {elvis_style, nesting_level}
, {elvis_style, god_modules}
, {elvis_style, no_if_expression}
, {elvis_style, invalid_dynamic_call}
, {elvis_style, used_ignored_variable}
, {elvis_style, no_behavior_info}
, {elvis_style, module_naming_convention}
, {elvis_style, function_naming_convention}
, {elvis_style, state_record_and_type}
, {elvis_style, no_spec_with_records}
, {elvis_style, dont_repeat_yourself}
, {elvis_style, no_debug_call}
, {elvis_style, variable_naming_convention}
, {elvis_style, no_nested_try_catch}
, {elvis_style, atom_naming_convention}
]);
rules(makefiles) ->
lists:map(
fun (Rule) ->
{elvis_project, Rule, elvis_project:default(Rule)}
end,
[ no_deps_master_erlang_mk
, protocol_for_deps_erlang_mk
]);
rules(rebar_config) ->
lists:map(
fun (Rule) ->
{elvis_project, Rule, elvis_project:default(Rule)}
end,
[ no_deps_master_rebar
, protocol_for_deps_rebar
]);
rules(elvis_config) ->
lists:map(
fun (Rule) ->
{elvis_project, Rule, elvis_project:default(Rule)}
end,
[ old_configuration_format
]);
rules(_Group) -> [].