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

[#325] old configuration format rule #25

Merged
merged 1 commit into from
Jan 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[#325] old configuration format rule
  • Loading branch information
Euen committed Jan 15, 2016
commit a893c65b19fc3e724728413dfe7a69b359a48afc
3 changes: 2 additions & 1 deletion src/elvis_project.erl
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,5 @@ exists_old_rule(#{rules := Rules}) ->
(_) ->
false
end,
lists:filter(Filter, Rules) /= [].
lists:filter(Filter, Rules) /= [];
exists_old_rule(_) -> false.
4 changes: 4 additions & 0 deletions test/examples/pass.elvis.config
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
#{dirs => ["."],
filter => "elvis.config",
rules => [{elvis_project, old_configuration_format}]
},
#{dirs => ["src"],
filter => "*.erl",
ruleset => erl_files
}
]
}
Expand Down