gritql
GritQL is a declarative query language designed to perform search, lint application, and code-change operations on source code. Developed with Rust, it can run on tens of millions of lines of large code bases thanks to query optimization. JavaScript supports a large number of target languages, including Python, Rust, Go and SQL.
biomejs · Code Quality & Review
Common commercial products in this category: SonarCloud, Codacy, DeepSource
- You use any piece of code as a direct query to search your code base.
- You can automatically change the code patterns found by defining the rules for rewriting them.
- Using the built-in module system, you can reuse standard patterns or share your own patterns.
- • NeutralHacker News
Show HN: GritQL, a Rust CLI for rewriting source code
“You should check out Yes, theoretically if you had ~identical grammars you could use it to do a full transpilation. There's a lot of challenges with that though. Writing a correct grammar for 1 language is complicated enough, but writing one for two where all your nodes and…”
- ↑ PositiveHacker News
Show HN: GritQL, a Rust CLI for rewriting source code
“Thank you! We definitely want to give useful value to everyone. To expand more on our business model, we see GritQL as a powerful but also relatively low-level tool. It can speed up your migration, but writing the query and generating/testing the PRs still takes considerable…”