OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework
GritQL is an AST-based code transformation engine and structural search tool. It uses a declarative query language to identify and rewrite source code patterns across multiple programming languages by matching abstract syntax tree nodes rather than literal text. The system functions as an automated refactoring framework for large-scale migrations and API updates. It distinguishes itself by utilizing sequential transformation pipelines and reusable blueprints that can be synced between local environments and remote repositories. The tool covers a broad range of capabilities including static a
ast-grep is a command-line utility and static analysis engine designed for searching, linting, and refactoring source code. It operates by identifying and transforming code blocks based on their underlying syntactic structure rather than relying on text-based or regular expression matching. The tool utilizes a language-agnostic abstraction to normalize diverse programming grammars into a unified tree structure. By employing a rule-driven engine, it allows users to define complex patterns that capture syntax nodes as variables, enabling consistent and syntactically valid modifications across e
Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize syntax using predefined rules. It functions as a static analysis engine that inspects code structures and types to identify refactoring targets without executing the code. The project provides a framework for defining custom transformation logic to automate project-specific changes. It distinguishes itself by offering specialized capabilities for migrating legacy or custom frameworks to modern alternatives and converting docblock annotations into native language attributes. The s
Comby es una utilidad de línea de comandos diseñada para la búsqueda y transformación estructural de código en diversos lenguajes de programación. Funciona como un motor de transformación de código que identifica y modifica patrones de código fuente utilizando plantillas conscientes de la sintaxis, asegurando que las operaciones respeten los límites del lenguaje como bloques anidados, cadenas y comentarios.
Las características principales de comby-tools/comby son: Code Transformation Engines, Structural Code Searchers, Automated Code Refactoring, Structural Pattern Matching, Syntax Abstractions, Recursive Descent Parsers, Interactive Change Reviewers, Change Review Interfaces.
Las alternativas de código abierto para comby-tools/comby incluyen: openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… biomejs/gritql — GritQL is an AST-based code transformation engine and structural search tool. It uses a declarative query language to… ast-grep/ast-grep — ast-grep is a command-line utility and static analysis engine designed for searching, linting, and refactoring source… rectorphp/rector — Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize… analysis-tools-dev/static-analysis — This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It… benjamn/recast — Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into…