-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
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
False negative: Nested blocks inside an if/else clause are not detected #1029
Comments
Thanks for reporting this 😀 It is now fixed on You can try this by setting the Credo dep to {:credo, github: "rrrene/credo"} Please report back if your issue is solved! 👍 |
Yes! Thank you for speedy fix 🚀 |
Reopening because the code change indeed addresses nesting inside
could you take a look? 👀 thank you 🙏🏻 |
D'oh! Just pushed another fix. Could you try again? |
Coming back here ages later again - but thanks a lot! works as expected 🚀 |
Environment
Credo version:
1.6.7
Erlang/Elixir version:
Operating system: macos M1
What were you trying to do?
Identify deeply nested functions. I used
mix credo --all
with default configuration. It successfully identified many. However missed functions of the following form.Note: If I omit the
else
block then the suggestion is raised.Expected outcome
Raise suggestion:
Function body is nested too deep (max depth is 2, was 4).
Actual outcome
Credo found no issues.
The text was updated successfully, but these errors were encountered: