-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function clause when rule is disabled #384
Comments
@GRAB3 What Erlang/OTP version are you using? |
Hi it is OTP 18.1 i believe installed from brew on OS X el capitan.
|
Hi @GRAB3 I'm afraid that you can't add the atom [
{
elvis,
[
{config,
[#{dirs => ["src"],
ignore => [".*_tests"],
filter => "*.erl",
ruleset => erl_files,
rules => [{elvis_style, line_length, #{limit => 120,
skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace},
{elvis_style, macro_names},
{elvis_style, macro_module_names},
{elvis_style, operator_spaces},
{elvis_style, nesting_level, #{level => 5}},
{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)?$",
ignore => []}
},
{elvis_style, state_record_and_type, disable},
{elvis_style, dont_repeat_yourself, #{min_complexity => 21}}
]
},
#{dirs => ["."],
filter => "Makefile",
rules => [{elvis_project, no_deps_master_erlang_mk, #{ignore => []}},
{elvis_project, protocol_for_deps_erlang_mk, #{ignore => []}}]
},
#{dirs => ["."],
filter => "rebar.config",
rules => [%%{elvis_project, no_deps_master_rebar, #{ignore => []}},
%%{elvis_project, protocol_for_deps_rebar, #{ignore => []}}
]
},
#{dirs => ["."],
filter => "elvis.config",
rules => [{elvis_project, old_configuration_format}]
}
]
}
]
}
]. |
Thanks works perfectly. I think, it would also be useful to mention it somewhere in documentation that |
You're right @GRAB3 I've already added (elvis_core), thanks for the recommendation |
elvis.config:
Causing error:
The text was updated successfully, but these errors were encountered: