We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mix credo -v
elixir -v
Not sure if this is intended or not, but credo 1.7.0 starts triggering the NestedFunctionCalls check for things like this:
case do_something() do {:error, error} -> Logger.error("There was an error: #{inspect(error)}")
It seems to want inspect(error) pulled out into its own line e.g.
inspect(error)
inspected_error = inspect(error) Logger.error("There was an error: #{inspected_error}")
Is this the intended direction for readability?
The text was updated successfully, but these errors were encountered:
Thanks for reporting this 😀 It is now fixed on master.
master
You can try this by setting the Credo dep to
{:credo, github: "rrrene/credo"}
Please report back if your issue is solved! 👍
Sorry, something went wrong.
This is part of 1.7.2-rc.3 👍
1.7.2-rc.3
This is part of Credo 1.7.2. 👍
1.7.2
No branches or pull requests
Environment
mix credo -v
): 1.7.0-ref.upgrade-tools.7f37f20c+uncommittedchangeselixir -v
): Erlang/OTP 25 [erts-13.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns] Elixir 1.14.3 (compiled with Erlang/OTP 25)Not sure if this is intended or not, but credo 1.7.0 starts triggering the NestedFunctionCalls check for things like this:
It seems to want
inspect(error)
pulled out into its own line e.g.Is this the intended direction for readability?
The text was updated successfully, but these errors were encountered: