Skip to content

Commit

Permalink
Merge pull request #52 from inaka/sstrigler-rebar3-pkg-alias
Browse files Browse the repository at this point in the history
Don't crash on rebar3's pkg aliases
  • Loading branch information
Brujo Benavides authored Jul 13, 2016
2 parents 8e24a61 + 4aa81a8 commit 88bc2c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elvis_project.erl
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ is_rebar_hex_dep({_AppName, _Vsn})
is_rebar_hex_dep(_) ->
false.

is_rebar_not_git_dep({_AppName, {pkg, _OtherName}}, _Regex) ->
false;
is_rebar_not_git_dep({_AppName, {_SCM, Url, _Branch}}, Regex) ->
nomatch == re:run(Url, Regex, []);
is_rebar_not_git_dep({_AppName, {_SCM, Url}}, Regex) ->
Expand Down

0 comments on commit 88bc2c6

Please sign in to comment.