https://github.com/openrewrite/rewrite-analysis
OpenRewrite recipes for data flow analysis.
https://github.com/openrewrite/rewrite-analysis
control-flow control-flow-graph dataflow openrewrite openrewrite-recipes refactoring
Last synced: 4 months ago
JSON representation
OpenRewrite recipes for data flow analysis.
- Host: GitHub
- URL: https://github.com/openrewrite/rewrite-analysis
- Owner: openrewrite
- License: apache-2.0
- Created: 2023-05-03T17:51:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-09T13:52:11.000Z (4 months ago)
- Last Synced: 2026-02-09T18:38:36.684Z (4 months ago)
- Topics: control-flow, control-flow-graph, dataflow, openrewrite, openrewrite-recipes, refactoring
- Language: Java
- Homepage:
- Size: 76.6 MB
- Stars: 15
- Watchers: 6
- Forks: 11
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
OpenRewrite Analysis
🎉 Automate software refactoring 🎉
[](https://github.com/openrewrite/rewrite-analysis/actions/workflows/ci.yml)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://mvnrepository.com/artifact/org.openrewrite.meta/rewrite-analysis)
[](https://ge.openrewrite.org/scans)
> [!WARNING]
> There are some fundamental limitations to the implementation in this module, and we are currently [exploring an alternative implementation](https://docs.moderne.io/openrewrite-advanced-program-analysis/control-flow).
> We advise against starting new efforts using `rewrite-analysis`.
## What is this?
This project contains a series of utility functions and visitors to perform complex analysis of source code.
For example:
- Data flow analysis
- Control Flow Analysis
- Fluent AST navigation with an trait-based API similar to [CodeQL](https://codeql.github.com).
## How to use?
See the full documentation at [docs.openrewrite.org](https://docs.openrewrite.org/).
## Refactoring at scale with Moderne
OpenRewrite's refactoring engine and recipes will always be open source. Build tool plugins like [OpenRewrite Gradle Plugin](https://docs.openrewrite.org/reference/gradle-plugin-configuration) and [OpenRewrite Maven Plugin](https://docs.openrewrite.org/reference/rewrite-maven-plugin) help you run these recipes on one repository at a time. Moderne is a complementary product that executes OpenRewrite recipes at scale on hundreds of millions of lines of code and enables mass committing of results. Moderne freely runs a [public service](https://public.moderne.io) for the benefit of thousands of open source projects.
[](https://youtu.be/Mq6bKAeGCz0)
## Contributing
We appreciate all types of contributions. See the [contributing guide](https://github.com/openrewrite/.github/blob/main/CONTRIBUTING.md) for detailed instructions on how to get started.