Disable credo MaxLineLength

Let `mix format` handle it so that `mix credo` doesn't flag `mix format`
bugs.
pull/162/head
Luke Imhoff 7 years ago
parent 3df97df546
commit ee6a82c19f
  1. 3
      .credo.exs
  2. 4
      apps/explorer/lib/explorer/chain.ex

@ -84,7 +84,8 @@
{Credo.Check.Design.TagFIXME},
{Credo.Check.Readability.FunctionNames},
{Credo.Check.Readability.LargeNumbers},
{Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 120},
# mix format handles line length and using both hits some `mix format` bugs
{Credo.Check.Readability.MaxLineLength, false},
{Credo.Check.Readability.ModuleAttributeNames},
{Credo.Check.Readability.ModuleDoc},
{Credo.Check.Readability.ModuleNames},

@ -928,9 +928,7 @@ defmodule Explorer.Chain do
"""
@spec transaction_hash_to_internal_transactions(Hash.Full.t()) :: %Scrivener.Page{entries: [InternalTransaction.t()]}
@spec transaction_hash_to_internal_transactions(Hash.Full.t(), [necessity_by_association_option | pagination_option]) ::
%Scrivener.Page{
entries: [InternalTransaction.t()]
}
%Scrivener.Page{entries: [InternalTransaction.t()]}
def transaction_hash_to_internal_transactions(
%Hash{byte_count: unquote(Hash.Full.byte_count())} = hash,
options \\ []

Loading…
Cancel
Save