It looks like there's an issue is in the function bellow. My result from :elixir_tokenizer.tokenize has one more parameter than expected. Not sure if that's a breaking change on Elixir 1.17 or is something wrong with my setup?
def to_tokens(source, filename \\ "nofilename") when is_binary(source) do
source
|> String.to_charlist()
|> :elixir_tokenizer.tokenize(1, file: filename)
|> case do
# Elixir < 1.6
{_, _, _, tokens} ->
tokens
# Elixir >= 1.6
{:ok, tokens} ->
tokens
# Elixir >= 1.13
{:ok, _, _, _, tokens} ->
tokens
{:error, _, _, _, tokens} ->
tokens
end
end
Environment
mix credo -v
): 1.7.6-ref.main.6616c36+uncommittedchangeselixir -v
): 1.17.0 (compiled with Erlang/OTP 26)What were you trying to do?
mix credo
and have checks specified in.credo.exs
file{Credo.Check.Design.SkipTestWithoutComment, []},
:elixir_tokenizer.tokenize
Expected outcome
Actual outcome
It looks like there's an issue is in the function bellow. My result from
:elixir_tokenizer.tokenize
has one more parameter than expected. Not sure if that's a breaking change on Elixir 1.17 or is something wrong with my setup?