zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

record_matching.ex (607B)


      1 defmodule Dialyxir.Warnings.RecordMatching do
      2   @behaviour Dialyxir.Warning
      3 
      4   @impl Dialyxir.Warning
      5   @spec warning() :: :record_matching
      6   def warning(), do: :record_matching
      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([string, name]) do
     15     "The #{string} violates the declared type for ##{name}{}."
     16   end
     17 
     18   @impl Dialyxir.Warning
     19   @spec explain() :: String.t()
     20   def explain() do
     21     Dialyxir.Warning.default_explain()
     22   end
     23 end