We’re looking to make a style change in one of our projects, and would like to rewrite single-line function definitions to multi-line function definitions. That is, from:
def foo, do: true
to
def foo do
true
end
Some of our definitions could be done with a regex search/replace, but not all of them, and even then I have…concerns about whether it would be the same code.
Is there something we could adapt from the code in mix.format to have Elixir do this code change for us?