hellgate/elvis.config
Andrew Mayorov ee85cc90d4 HG-49: Provide basic party management implementation (#20)
* HG-49: Provide basic party management implementation

* Bit simplified machine interfaces
* Tests split into three different modules
* Verify history consistency in each test suite

* HG-49: Switch temporarily to damsel fork

* HG-49: Ensure to throw in case of empty machine history too

* HG-49: Implement claim revocation + tests

* HG-49: Switch temporarily to damsel fork

* HG-49: Include and fix claim related tests in the suite

* HG-49: Implement claim acceptance / denial, no access control yet

* HG-49: Switch temporarily to damsel fork

* HG-47: Fix naming of claim status tags in line w/ proto

* HG-49: Implement pending claim retrieval

* HG-49: Implement shop management w/o proper acceptance flow for now

* HG-49: Introduce preliminary pending claims management

* HG-49: Split monolithic client into pieces service-wise

* HG-49: Fix copypasta artifact in a header guard

* HG-49: Make any new shop suspended initially

* HG-49: Use sequences instead of unique ids for shops / claims

* HG-49: Reference specific coredocs documents in the implementation

* HG-49: Employ generic unwrap, which raises error when fed w/ error tuple

* HG-49: Season complex code fragments w/ comments

* HG-49: Provide meaningful revocation reason

* HG-49: Simplify exception handling a bit in hg_party

* HG-49: Please the Linter

* HG-49: Provide moar tests
2016-09-22 15:25:41 +03:00

87 lines
3.8 KiB
Plaintext

[
{elvis, [
{config, [
#{
dirs => ["apps/*/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 => 30}},
{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 => ["apps/*/test"],
filter => "*.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, no_if_expression},
{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, no_spec_with_records},
{elvis_style, dont_repeat_yourself, #{min_complexity => 30}}
]
},
#{
dirs => ["."],
filter => "Makefile",
ruleset => makefiles
},
#{
dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config
},
#{
dirs => ["apps", "apps/*"],
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 => ["apps/*/src"],
filter => "*.app.src",
rules => [
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace}
]
}
]}
]}
].