Skip to content

Commit

Permalink
Merge pull request #101 from f3c0/otp21-dialyzer-fix
Browse files Browse the repository at this point in the history
fix OTP 21 dialyzer warnings
  • Loading branch information
elbrujohalcon authored Jul 3, 2018
2 parents 9ffb09a + f5d2fec commit 7e5a51c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/elvis_core.erl
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ rock(Config) ->
lists:foldl(fun combine_results/2, ok, Results).

-spec rock_this(target()) ->
ok | {fail, elvis_result:file()}.
ok | {fail, [elvis_result:file() | elvis_result:rule()]}.
rock_this(Target) ->
Config = elvis_config:default(),
rock_this(Target, Config).

-spec rock_this(target(), elvis_config:config()) ->
ok | {fail, elvis_result:file()}.
ok | {fail, [elvis_result:file() | elvis_result:rule()]}.
rock_this(Module, Config) when is_atom(Module) ->
ModuleInfo = Module:module_info(compile),
Path = proplists:get_value(source, ModuleInfo),
Expand Down Expand Up @@ -80,7 +80,7 @@ rock_this(Path, Config) ->
end.

%% @private
-spec do_rock(map()) -> ok | {fail, [elvis_result:file()]}.
-spec do_rock(map()) -> ok | {fail, [elvis_result:file() | elvis_result:rule()]}.
do_rock(Config0) ->
elvis_utils:info("Loading files..."),
Config = elvis_config:resolve_files(Config0),
Expand Down

0 comments on commit 7e5a51c

Please sign in to comment.