Disable lazy logging check in Credo (#1800)

Logger macros don't evaluate their parameters since [Elixir 1.7.0](https://elixir-lang.org/blog/2018/07/25/elixir-v1-7-0-released/).
Creating a lambda for every log output is no longer needed.
pull/1799/head
Paul Tsupikoff 6 years ago committed by GitHub
parent f609a3b0dc
commit d36a7d7ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .credo.exs
  2. 1
      CHANGELOG.md

@ -67,6 +67,9 @@
{Credo.Check.Readability.TrailingBlankLine, false},
{Credo.Check.Readability.TrailingWhiteSpace, false},
# outdated by lazy Logger in Elixir 1.7. See https://elixir-lang.org/blog/2018/07/25/elixir-v1-7-0-released/
{Credo.Check.Warning.LazyLogging, false},
# not handled by formatter
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.ParameterPatternMatching},
@ -118,7 +121,6 @@
{Credo.Check.Warning.ExpensiveEmptyEnumCheck},
{Credo.Check.Warning.IExPry},
{Credo.Check.Warning.IoInspect},
{Credo.Check.Warning.LazyLogging},
{Credo.Check.Warning.OperationOnSameValues},
{Credo.Check.Warning.OperationWithConstantResult},
{Credo.Check.Warning.UnusedEnumOperation},

@ -34,6 +34,7 @@
- [#1753](https://github.com/poanetwork/blockscout/pull/1753) - Add a check mark to decompiled contract tab
- [#1744](https://github.com/poanetwork/blockscout/pull/1744) - remove `0x0..0` from tests
- [#1763](https://github.com/poanetwork/blockscout/pull/1763) - Describe indexer structure and list existing fetchers
- [#1800](https://github.com/poanetwork/blockscout/pull/1800) - Disable lazy logging check in Credo
## 1.3.9-beta

Loading…
Cancel
Save