Skip to content
Permalink
Browse files

Fix type specification

A wrong typespec causes dialyzer errors in a client project where custom credo checks are built.
  • Loading branch information...
sasa1977 committed Aug 13, 2019
1 parent 7f51b45 commit c3813db4725247664e98270b4a91ea1eae61036e
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/credo/check.ex
  2. +1 −1 lib/credo/issue_meta.ex
@@ -36,7 +36,7 @@ defmodule Credo.Check do

@callback explanation_for_params() :: Keyword.t()

@callback format_issue(issue_meta :: IssueMeta, opts :: Keyword.t()) :: Issue.t()
@callback format_issue(issue_meta :: Credo.IssueMeta.t(), opts :: Keyword.t()) :: Issue.t()

@base_category_exit_status_map %{
consistency: 1,
@@ -5,7 +5,7 @@ defmodule Credo.IssueMeta do
params (by default).
"""

@type t :: module
@type t :: {__MODULE__, Credo.SourceFile.t(), Keyword.t()}

alias Credo.SourceFile

0 comments on commit c3813db

Please sign in to comment.
You can’t perform that action at this time.