-
Notifications
You must be signed in to change notification settings - Fork 57
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
[Fix #166] Extend default configuration #18
[Fix #166] Extend default configuration #18
Conversation
…to use lists:filter/2 instead of lists:dropwhile/2
@@ -10,8 +10,16 @@ TEST_DEPS = meck | |||
|
|||
dep_meck = git https://github.com/eproxus/meck 0.8.3 | |||
|
|||
SHELL_DEPS = sync goldrush |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of adding goldrush as a dep, use lager not from hex but from github
% If any default rule is in UserRules it means the user | ||
% wants to override the rule. | ||
fun({FileName, RuleName}) -> | ||
true /= is_rule_override(FileName, RuleName, UserRules); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of true /= |predicate|
, please use not |predicate|
or just change is_rule_override
to should_use_default
and return the opposite value from it.
}, | ||
#{dirs => ["."], | ||
filter => "Makefile", | ||
rules => [{elvis_project, no_deps_master_erlang_mk, #{ignore => []}}, | ||
{elvis_project, protocol_for_deps_erlang_mk, #{ignore => []}}] | ||
rule_group => makefiles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ruleset
% remains just the rules the user wants to override. | ||
lists:filter( | ||
fun({_FileName, _RuleName, OverrideOptions}) -> | ||
disable /= OverrideOptions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually use =/=
because it's an exact comparison. In this case it doesn't matter though since we are comparing an atom to a value and the match can only be exact.
…iguration [Fix #166] Extend default configuration
No description provided.