Skip to content

Commit

Permalink
Merge pull request #111 from inaka/elbrujohalcon.avoid-duplicates
Browse files Browse the repository at this point in the history
Prevent duplicate linting of files
  • Loading branch information
elbrujohalcon authored Sep 5, 2019
2 parents b7fa144 + 1d80b28 commit 3e319e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elvis_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ find_files(Dirs, Pattern) ->
Fun = fun(Dir) ->
filelib:wildcard(filename:join(Dir, Pattern))
end,
[#{path => Path} || Path <- lists:flatmap(Fun, Dirs)].
[#{path => Path} || Path <- lists:usort(lists:flatmap(Fun, Dirs))].

%% @doc Filter files based on the glob provided.
-spec filter_files([file()], [string()], string(), [string()]) -> [file()].
Expand Down

0 comments on commit 3e319e3

Please sign in to comment.