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 是一个命令行实用程序,专为跨多种编程语言的结构化代码搜索和转换而设计。它作为一个代码转换引擎,通过利用语法感知模板来识别和修改源代码模式,确保操作尊重语言边界,如嵌套块、字符串和注释。
comby-tools/comby 的主要功能包括:Code Transformation Engines, Structural Code Searchers, Automated Code Refactoring, Structural Pattern Matching, Syntax Abstractions, Recursive Descent Parsers, Interactive Change Reviewers, Change Review Interfaces。
comby-tools/comby 的开源替代品包括: 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…