     end
   end
 
+  # Check if analyzed module path is within ignored paths
   defp ignore_path?(filename, excluded_paths) do
     directory = Path.dirname(filename)
     Enum.any?(excluded_paths, &String.starts_with?(directory, &1))

  defp keep?(module_name, namespaces), do: has_namespace?(module_name, namespaces)

  defp has_namespace?(module_name, namespaces) do
    namespaces
    |> Enum.any?(&String.starts_with?(module_name, &1))
  end

  # Get full module name from list of aliases (if present)


  defp issues_for_module(_, _, _, _, _), do: []

  # Resolve dependencies to full module names
  defp with_fullnames(dependencies, aliases) do
    dependencies
    |> Enum.map(&full_name(&1, aliases))
    |> Enum.uniq()
  end

  # Keep only dependencies which are within specified namespaces
  defp filter_namespaces(dependencies, namespaces) do
    Enum.filter(dependencies, &keep?(&1, namespaces))
  end

  defp keep?(_module_name, []), do: true
