Skip to content

Commit

Permalink
Merge pull request #527 from maennchen/jm/warning_record_match
Browse files Browse the repository at this point in the history
Fix Formatting of `:record_match`
  • Loading branch information
jeremyjh committed Dec 9, 2023
2 parents 0091928 + f8e2ad9 commit b928e39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/dialyxir/warnings.ex
Expand Up @@ -41,6 +41,7 @@ defmodule Dialyxir.Warnings do
Dialyxir.Warnings.PatternMatch,
Dialyxir.Warnings.PatternMatchCovered,
Dialyxir.Warnings.RecordConstruction,
Dialyxir.Warnings.RecordMatch,
Dialyxir.Warnings.RecordMatching,
Dialyxir.Warnings.UnknownBehaviour,
Dialyxir.Warnings.UnknownFunction,
Expand Down
17 changes: 17 additions & 0 deletions lib/dialyxir/warnings/record_match.ex
@@ -0,0 +1,17 @@
defmodule Dialyxir.Warnings.RecordMatch do
@behaviour Dialyxir.Warning

@impl Dialyxir.Warning
@spec warning() :: :record_match
def warning(), do: :record_match

@impl Dialyxir.Warning
@spec format_short([String.t()]) :: String.t()
defdelegate format_short(args), to: Dialyxir.Warnings.RecordMatching

@impl Dialyxir.Warning
defdelegate format_long(args), to: Dialyxir.Warnings.RecordMatching

@impl Dialyxir.Warning
defdelegate explain(), to: Dialyxir.Warnings.RecordMatching
end

0 comments on commit b928e39

Please sign in to comment.