Credo.Check.Params.get
You're seeing just the function
get
, go back to Credo.Check.Params module for more information.
Returns the given field
's params
value.
Example:
defmodule SamepleCheck do
def param_defaults do
[foo: "bar"]
end
end
iex> Credo.Check.Params.get([], :foo, SamepleCheck)
"bar"
iex> Credo.Check.Params.get([foo: "baz"], :foo, SamepleCheck)
"baz"