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.

GR

gritql

New80

biomejs · Code Quality & Review

STARS4.6K
FORKS127
COMMITS0
CONTRIBUTORS0
VERSIONv0.0.3
UPDATED4 days ago
RustSorgu DiliCode AnalysisYeniden DüzenlemeMIT

Common commercial products in this category: SonarCloud, Codacy, DeepSource

What can it do?
  • 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.
User reviews
  • • 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…”

My note

Alternative pages

More in: Code Quality & Review