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
if
mix credo -v
elixir -v
I tried to use Bitwise operators in if condition
defmodule Example do @moduledoc false import Bitwise def bar(foo, bar) do if (foo &&& 0b1000) > 0, do: bar, else: nil end def foobar(foo) do foo end end
No Code Reliability warning
Code Reliability
The condition of `if` should not be wrapped in parentheses
Something strange also: the warning disappear if the function containing the if-Bitwise operation is the last functions of the module.
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.
9b338a8
No branches or pull requests
Environment
mix credo -v
): 0.8.6elixir -v
): 1.5.1What were you trying to do?
I tried to use Bitwise operators in if condition
Expected outcome
No
Code Reliability
warningActual outcome
Something strange also: the warning disappear if the function containing the if-Bitwise operation is the last functions of the module.
The text was updated successfully, but these errors were encountered: