From a893c65b19fc3e724728413dfe7a69b359a48afc Mon Sep 17 00:00:00 2001 From: Euen Date: Fri, 15 Jan 2016 13:05:27 -0300 Subject: [PATCH] [#325] old configuration format rule --- src/elvis_project.erl | 3 ++- test/examples/pass.elvis.config | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/elvis_project.erl b/src/elvis_project.erl index 707d031..63fbe24 100644 --- a/src/elvis_project.erl +++ b/src/elvis_project.erl @@ -266,4 +266,5 @@ exists_old_rule(#{rules := Rules}) -> (_) -> false end, - lists:filter(Filter, Rules) /= []. + lists:filter(Filter, Rules) /= []; +exists_old_rule(_) -> false. diff --git a/test/examples/pass.elvis.config b/test/examples/pass.elvis.config index cf70ef8..cf8ba7f 100644 --- a/test/examples/pass.elvis.config +++ b/test/examples/pass.elvis.config @@ -39,6 +39,10 @@ #{dirs => ["."], filter => "elvis.config", rules => [{elvis_project, old_configuration_format}] + }, + #{dirs => ["src"], + filter => "*.erl", + ruleset => erl_files } ] }