dominant/elvis.config
Andrew Mayorov 61320c4320 HG-155: Switch to the msgpack-aware machinegun interface (#32)
* HG-155: Switch to msgpack-like machinegun interface

* HG-155: Bump deps up and move onto Erlang 19

* HG-155: Make the release rebar-runnable

* HG-155: Fix marshalling to and from msgpack

* HG-155: Bump to rbkmoney/woody_erlang@2f264f9

* HG-155: Add forgotten msgpack-thrift protocol

* HG-155: Make dialyzer happy again

* HG-155: Make repository machine versioned

 * Migrate legacy history upon machine init
 * Introduce automaton client to reduce boilerplate
 * Remove `get_commit` facility as it was unused

* HG-155: Add repository dispatcher + add migration tests

* HG-155: Move in-memory thrift encoding into dedicated module

* HG-155: Use plain thrift binary as it is much simpler to work with

* HG-155: Switch back to msgpack-based commit representaion

* HG-155: Remove meaningless repair signal handling in favor of simple repair

* HG-155: Add forgotten behaviour annotations

* HG-155: Mention better approach with a migrating repository backend

* HG-155: Make dialyzer happy again

* HG-155: Bump to rbkmoney/damsel@d0c4a06, rbkmoney/machinegun@e04e529

* HG-155: Make elvis happy

* HG-155: Fix make target and Jenkinsfile
2017-03-29 18:27:11 +03:00

68 lines
2.7 KiB
Plaintext

[
{elvis, [
{config, [
#{
dirs => ["src"],
filter => "*.erl",
ignore => ["_thrift.erl$"],
rules => [
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace},
{elvis_style, macro_module_names},
{elvis_style, operator_spaces, #{rules => [{right, ","}, {right, "++"}, {left, "++"}]}},
{elvis_style, nesting_level, #{level => 3}},
{elvis_style, god_modules, #{limit => 25}},
{elvis_style, no_if_expression},
{elvis_style, invalid_dynamic_call, #{ignore => [elvis]}},
{elvis_style, used_ignored_variable},
{elvis_style, no_behavior_info},
{elvis_style, module_naming_convention, #{regex => "^([a-z][a-z0-9]*_?)*(_SUITE)?$"}},
{elvis_style, function_naming_convention, #{regex => "^([a-z][a-z0-9]*_?)*$"}},
{elvis_style, state_record_and_type},
{elvis_style, no_spec_with_records},
{elvis_style, dont_repeat_yourself, #{min_complexity => 10}},
{elvis_style, no_debug_call, #{ignore => [elvis, elvis_utils]}}
]
},
#{
dirs => ["."],
filter => "Makefile",
ruleset => makefiles
},
#{
dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config
},
#{
dirs => ["."],
filter => "rebar.config",
rules => [
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace}
]
},
#{
dirs => ["."],
filter => "rebar.config",
rules => [
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace}
]
},
#{
dirs => ["src"],
filter => "*.app.src",
rules => [
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace}
]
}
]}
]}
].