Query-based static code analysis engine
Top 86.5% on sourcepulse
CodeFuse-Query is a data-centric static code analysis system designed for large-scale software development, addressing the limitations of traditional tools. It enables multifaceted code analysis by transforming source code into a standardized data model (COREF) and querying it using a Datalog-based DSL called Gödel. This approach allows for efficient, reusable, and declarative analysis of codebases exceeding billions of lines.
How It Works
CodeFuse-Query treats code analysis as a data computation task. It converts source code into a comprehensive data model called COREF, which includes Abstract Syntax Trees (AST), Abstract Semantic Graphs (ASG), Control Flow Graphs (CFG), Program Dependency Graphs (PDG), Call Graphs, Class Hierarchies, and documentation. This structured data is then queried using Gödel, a Datalog-based Domain-Specific Language. Gödel's declarative nature and Datalog's properties like monotonicity and termination enable efficient formulation and execution of complex, recursive queries that are challenging for traditional SQL or imperative approaches.
Quick Start & Requirements
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 month ago
1 week