Open misfo opened 11 years ago
And yes, I think a separate tool depending on Sorcerer would be a good idea.
Ugh... It looks like the first two aren't doable with the sexps alone. There probably some way to do it if we were also given the results of Rippers lexer, but that might be a lot of work...
Since experiencing how freeing a tool like
gofmt
is when run automatically on all code, I've been wishing Ruby had a similar tool. Having a tool do formatting for you takes one thing off your mind, however small, when writing code.Would you have any interest in pull requests for any of the following?:
n
consecutive blank lines)if ... else ... end
expression on the RHS of an assignment so that the keywords all line up)To make a tool like
gofmt
would require a CLI, too. But maybe that would make more sense as a separate project that depends on sorcerer...