1 points · by kinchen · 7y ago · 2 comments
In a large project of mine, I regularly have code wrapped across multiple lines that could be expressed more succinctly using a different series of calls.
My initial stab at how to refactor this is to create a small parser that iterates through these files and refactors as appropriate. Is this overkill? Doesn't seem quite right for sed, but awk might work. Any other tools I'm missing?