Closed chulkilee closed 6 years ago
Thx for reporting! :+1:
'Technically' ->/2
is an operator in the AST. However something like -> blah
is inferred like () -> blah
. The bug here is that it seems that Credo wants a space between (
and ->
, which does indeed seem superfluous to me. ^.^;
@chulkilee Thanks for reporting this 😀
@OvermindDL1 It is now fixed on master
.
You can try this by setting the Credo dep to
{:credo, github: "rrrene/credo"}
Please report back if your issue is solved! 👍
Environment
mix credo -v
): 0.8.6elixir -v
): Elixir 1.5.1What were you trying to do?
Running
mix credo
to check files, formatted by https://github.com/whatyouhide/code_formatterExpected outcome
No error
Actual outcome
Got "There are spaces around operators most of the time, but not here."
->
in the@type
is not operator :)