What is the best C# "codemod" engine out there? #1026
Unanswered
alexbit-codemod
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi, Roslynator command line tool can be used for this purpose (namely Also, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone!
Is there any tool (maybe Roslynator is the closest to what I'm looking for) to help C# devs easily (maybe in a declarative way) create a script to detect certain patterns and transform it to something else (codemod) so they can do their mass refactoring, migrations, and upgrades easier?
in JS/TS world we have: https://github.com/facebook/jscodeshift
and popular frameworks (e.g. Material UI) create codemods for their consumers to run and almost automatically upgrade their dependencies (see these for MUI v4 to v5 upgrade.)
there are many other codemod engines out there.
LibCST for Python
openrewrite/rewrite for java
Uber's Piranha (for many languages)
JScodeshit, or Putout for JS/TS
Beta Was this translation helpful? Give feedback.
All reactions