Skip to content
Permalink
Browse files

Move PipeChainStart to opt-in

Refs #634
  • Loading branch information...
rrrene committed Jun 9, 2019
1 parent 70f231b commit 2eea21e761360d42c9a3d144658f43f1593f67ac
Showing with 5 additions and 6 deletions.
  1. +1 −5 .credo.exs
  2. +4 −1 lib/credo/check/refactor/pipe_chain_start.ex
@@ -113,11 +113,6 @@
{Credo.Check.Refactor.NegatedConditionsInUnless, []},
{Credo.Check.Refactor.NegatedConditionsWithElse, []},
{Credo.Check.Refactor.Nesting, []},
{Credo.Check.Refactor.PipeChainStart,
[
excluded_argument_types: [:atom, :binary, :fn, :keyword, :number],
excluded_functions: []
]},
{Credo.Check.Refactor.UnlessWithElse, []},
{Credo.Check.Refactor.WithClauses, []},

@@ -153,6 +148,7 @@
{Credo.Check.Refactor.AppendSingleItem, false},
{Credo.Check.Refactor.DoubleBooleanNegation, false},
{Credo.Check.Refactor.ModuleDependencies, false},
{Credo.Check.Refactor.PipeChainStart, false},
{Credo.Check.Refactor.VariableRebinding, false},
{Credo.Check.Warning.MapGetUnsafePass, false},
{Credo.Check.Warning.UnsafeToAtom, false}
@@ -27,7 +27,10 @@ defmodule Credo.Check.Refactor.PipeChainStart do
excluded_argument_types: "All pipes with argument types listed will be ignored."
]
]
@default_params [excluded_argument_types: [], excluded_functions: []]
@default_params [
excluded_argument_types: [:atom, :binary, :fn, :keyword, :number],
excluded_functions: []
]

use Credo.Check

0 comments on commit 2eea21e

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