Skip to content

Commit

Permalink
don't ignore ignore (pun) after inaka#6
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Mar 18, 2016
1 parent e3193a7 commit 499fd63
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/elvis_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,10 @@ resolve_files(Config) when is_list(Config) ->
lists:map(fun resolve_files/1, Config);
resolve_files(RuleGroup = #{files := _Files}) ->
RuleGroup;
resolve_files(RuleGroup = #{dirs := Dirs, filter := Filter}) ->
Files = elvis_file:find_files(Dirs, Filter, local),
RuleGroup#{files => Files};
resolve_files(RuleGroup = #{dirs := Dirs}) ->
Files = elvis_file:find_files(Dirs, ?DEFAULT_FILTER),
RuleGroup#{files => Files}.
Filter = filter(RuleGroup),
Files = elvis_file:find_files(Dirs, Filter),
resolve_files(RuleGroup, Files).

%% @doc Takes a function and configuration and applies the function to all
%% file in the configuration.
Expand Down Expand Up @@ -234,4 +232,4 @@ is_rule_override(FileName, RuleName, UserRules) ->
end
end,
UserRules
).
).

0 comments on commit 499fd63

Please sign in to comment.