Skip to content

Commit

Permalink
Merge bab663c into 83145e6
Browse files Browse the repository at this point in the history
  • Loading branch information
bearmug committed Jan 30, 2019
2 parents 83145e6 + bab663c commit 4a3b0c1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
30 changes: 30 additions & 0 deletions elvis.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
elvis,
[
{config,
#{src_dirs => ["src"],
rules => [{elvis_style, line_length, [120]},
{elvis_style, no_tabs, []},
{elvis_style, macro_names, []},
{elvis_style, macro_module_names, []},
{elvis_style, operator_spaces, [{right, ","},
{right, "++"},
{left, "++"}]},
{elvis_style, nesting_level, [3]},
{elvis_style, god_modules, [25]},
{elvis_style, no_if_expression, []},
{elvis_style, invalid_dynamic_call, [elvis]},
{elvis_style, used_ignored_variable, []},
{elvis_style, no_behavior_info, []},
{
elvis_style,
module_naming_convention,
["^([a-z][a-z0-9]*_?)*(_SUITE)?$", []]
}
]
}
}
]
}
].
14 changes: 0 additions & 14 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@
]}
]}.

{elvis,
[#{dirs => ["src"],
include_dirs => [],
filter => "*.erl",
ruleset => erl_files,
rules =>
[{elvis_style, line_length, #{limit => 120}},
{elvis_style, god_modules, #{limit => 40}},
{elvis_style, state_record_and_type, disable} % epgsql_sock
]}
]
}.


{dialyzer,
[
{plt_location, "_build/plt"}
Expand Down

0 comments on commit 4a3b0c1

Please sign in to comment.