unknown_behaviour.ex (635B)
1 defmodule Dialyxir.Warnings.UnknownBehaviour do 2 @behaviour Dialyxir.Warning 3 4 @impl Dialyxir.Warning 5 @spec warning() :: :unknown_behaviour 6 def warning(), do: :unknown_behaviour 7 8 @impl Dialyxir.Warning 9 @spec format_short(String.t()) :: String.t() 10 def format_short(args), do: format_long(args) 11 12 @impl Dialyxir.Warning 13 @spec format_long(String.t()) :: String.t() 14 def format_long(behaviour) do 15 pretty_module = Erlex.pretty_print(behaviour) 16 17 "Unknown behaviour: #{pretty_module}." 18 end 19 20 @impl Dialyxir.Warning 21 @spec explain() :: String.t() 22 def explain() do 23 Dialyxir.Warning.default_explain() 24 end 25 end