Skip to content
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

Merged
merged 8 commits into from
Jan 11, 2016

Conversation

harenson
Copy link
Member

@harenson harenson commented Jan 8, 2016

No description provided.

@harenson harenson changed the title [Fix #166] Extend default configuration (WIP) [Fix #166] Extend default configuration Jan 8, 2016
@harenson harenson changed the title [Fix #166] Extend default configuration [Fix #166] Extend default configuration (WIP) Jan 8, 2016
@harenson harenson changed the title [Fix #166] Extend default configuration (WIP) [Fix #166] Extend default configuration Jan 8, 2016
@@ -10,8 +10,16 @@ TEST_DEPS = meck

dep_meck = git https://github.com/eproxus/meck 0.8.3

SHELL_DEPS = sync goldrush
Copy link
Member

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

@elbrujohalcon
Copy link
Member

@harenson I finally found the proper word. It's not rule_group, it's ruleset. Please rename everything.

% 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);
Copy link
Member

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
Copy link
Member

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;
Copy link
Contributor

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.

jfacorro added a commit that referenced this pull request Jan 11, 2016
…iguration

[Fix #166] Extend default configuration
@jfacorro jfacorro merged commit 81441be into master Jan 11, 2016
@jfacorro jfacorro deleted the harenson.166.extending-default-configuration branch January 11, 2016 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants