From f23c16fdf4d09c9a33dabe87b8d3bb38ef923397 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Tue, 2 Apr 2019 16:48:58 +0200 Subject: [PATCH] add :allow_bang :params to @ explanation of VariableRebinding check --- lib/credo/check/refactor/variable_rebinding.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/credo/check/refactor/variable_rebinding.ex b/lib/credo/check/refactor/variable_rebinding.ex index 14d74c5fa..fc559273a 100644 --- a/lib/credo/check/refactor/variable_rebinding.ex +++ b/lib/credo/check/refactor/variable_rebinding.ex @@ -38,7 +38,12 @@ defmodule Credo.Check.Refactor.VariableRebinding do params! = do_yet_another_thing(params!) end """ - @explanation [check: @checkdoc] + @explanation [ + check: @checkdoc, + params: [ + allow_bang: "Variables with a bang suffix will be ignored." + ] + ] use Credo.Check