splint icon indicating copy to clipboard operation
splint copied to clipboard

FR: Use rewrite-clj to perform replacements with code suggestions

Open NoahTheDuke opened this issue 1 year ago • 1 comments

not sure if prewalk or postwalk, tbh. i'll have to think on it.

NoahTheDuke avatar May 09 '24 22:05 NoahTheDuke

Related to #7.

NoahTheDuke avatar May 16 '24 00:05 NoahTheDuke

I can do this by relying on :source in edamame. This will have to wait until https://github.com/borkdude/edamame/pull/112 is merged and a new release is cut, but once it's available, I can use rewrite-clj to parse the source of forms in diagnostics after a run and then step through them one by one and offer a replacement.

Hmm actually, that might not work, we'll see. I might need to traverse the entire file with rewrite-clj as the source won't match once I've replaced something once.

NoahTheDuke avatar Aug 28 '24 17:08 NoahTheDuke