From c3813db4725247664e98270b4a91ea1eae61036e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Juri=C4=87?= Date: Tue, 13 Aug 2019 15:14:39 +0200 Subject: [PATCH] Fix type specification A wrong typespec causes dialyzer errors in a client project where custom credo checks are built. --- lib/credo/check.ex | 2 +- lib/credo/issue_meta.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/credo/check.ex b/lib/credo/check.ex index e4d5e7021..7cf1b06a5 100644 --- a/lib/credo/check.ex +++ b/lib/credo/check.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, diff --git a/lib/credo/issue_meta.ex b/lib/credo/issue_meta.ex index f531324a7..507ca4b17 100644 --- a/lib/credo/issue_meta.ex +++ b/lib/credo/issue_meta.ex @@ -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