-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when to use astx codemod engine? #18
Comments
Hi @alex-from-intuita, thanks for reaching out! Your codemod studio is cool! Yeah semgrep has a similar pattern language, it seems like it doesn't allow you to replace with patterns or do any codemodding in general though?
The fact that they have a pattern language that's not just JS/TS is good, there are limitations to defining patterns as pure JS/TS statements or expressions, ideally you want a grammar that's a superset of the programming language's grammar where you can use special pattern language constructs in place of any grammar symbol... It's hard to say exactly which use cases can't be handled by One big limitation is you can't make patterns that only match identifiers of a given TypeScript type, for example The biggest problem I've run into with JSCodeshift is that |
But yeah Another limitation of the API is you can only search for nodes via patterns right now, I need to add a method to get all nodes of a given type (you can then |
great work @jedwards1211 here.
which use cases cannot be handled by astx?
have you heard about semgrep? (they have data flow analysis, and built on top of tree-sitter)
also grit.io is building some awesome stuff. their pattern language reminded of your work.
at intuita, we are building a community of codemod champions like you. would love to have you there and exchange notes.
also if interested, we can chat about adding astx support to our codemod.studio (we have visual codemod builder and some LLM helpers to build codemods faster)
The text was updated successfully, but these errors were encountered: