Refactoring with Codemods to Automate API Changes
17 points
13 days ago
| 2 comments
| martinfowler.com
| HN
transitivebs
10 days ago
[-]
https://github.com/getgrit/gritql is the best large-scale codemod / refactoring tool I've ever used.
reply
mmastrac
10 days ago
[-]
It's finicky and picky, very dependent on the tree sitter grammar but when it works, it's magical.
reply
wcdolphin
9 days ago
[-]
Have you found any tools you think are easier/better? I’d love to learn more about the space.
reply
mmastrac
9 days ago
[-]
Nope, I'd say it's the best :)
reply
westurner
10 days ago
[-]
From "Show HN: Codemodder – A new codemod library for Java and Python" (2024) https://news.ycombinator.com/item?id=39111747 :

> [ codemodder-python, libCST, MOSES and Holman's elegant normal form, singnet/asmoses, Formal Verification, ]

reply