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
defmodule A do defp is_user(cookie) do true end end
PredicateFunctionNames
Credo reports an issue with the function - it is a predicate function that starts with is_.
is_
Credo does not report any issues.
The check works fine if I make the function 0-arity, for the following code an issue is reported:
defmodule A do defp is_user do true end end
The text was updated successfully, but these errors were encountered:
Fixing issue rrrene#866 to check predicates with arity
4b84aae
I created a pull request fixing this issue, just waiting for approval :)
Sorry, something went wrong.
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! 👍
Fixing issue #866 to check predicates with arity
d9474a1
This is part of v1.6.1 💚
No branches or pull requests
Precheck
Environment
mix credo -v
): 1.5.4elixir -v
): Erlang 23, Elixir 1.11.3What were you trying to do?
PredicateFunctionNames
check enabled.Expected outcome
Credo reports an issue with the function - it is a predicate function that starts with
is_
.Actual outcome
Credo does not report any issues.
Extra information
The check works fine if I make the function 0-arity, for the following code an issue is reported:
The text was updated successfully, but these errors were encountered: