 
     all_modules = MapSet.new(module_sources, &elem(&1, 0))
 
-    Map.new module_sources, fn {module, source} ->
+    Map.new(module_sources, fn {module, source} ->
       source(runtime_references: runtime, compile_references: compile, source: file) = source
+
       compile_references =
         compile
         |> MapSet.new()
         |> MapSet.delete(module)
         |> MapSet.intersection(all_modules)
-        |> Enum.filter(&module_sources[&1] != source)
+        |> Enum.filter(&(module_sources[&1] != source))
         |> Enum.map(&{source(module_sources[&1], :source), "(compile)"})
 
       runtime_references =

    cond do
      excluded?(module, func, arity, excludes) ->
        nil
      skip?(module, func, arity) ->
        nil
      exports == :unknown_module ->
        {Enum.sort(lines), :unknown_module, module, func, arity, nil}
      is_atom(exports) and not function_exported?(module, func, arity) ->
        {Enum.sort(lines), :unknown_function, module, func, arity, nil}
      is_list(exports) and {func, arity} not in exports ->
        {Enum.sort(lines), :unknown_function, module, func, arity, exports}
      true ->
        nil
    end


  defp warnings(file, entries) do
    prefix = IO.ANSI.format([:yellow, "warning: "])

    warnings =
      Enum.map(Enum.sort(entries), fn entry ->
        message = message(entry)
