But I can also think of a lot of examples that could be easily automated and save some time:
- Rename all file extensions from
- Translate methods / operators with different names, e.g.:
- Replace single quoted strings with double quotes
Then run the Crystal type-checker + formatter + ameba on the result and start fixing the remaining issues.
I was surprised that I couldn’t find anything on Google or the Implementations/Compilers section in awesome-ruby.
I use a couple of very small Ruby gems that should be very easy to port to Crystal, such as this bad_words_detector. So I’m interested in working on a codemod/translator to help with some of these cases.
I think the easiest way might be to fork rufo and make it generate semi-valid Crystal.