Awesome
AST Metrics
<img src="https://raw.githubusercontent.com/Halleck45/ast-metrics/main/docs/logo-ast-metrics-right.jpg" height="200px" alt="PhpMetrics" align="left" style="margin-right:20px"/>AST Metrics is a blazing-fast static code analyzer. It provides metrics about your code, and helps you to identify potential problems early on.
<br/><br/> <br/><br/>
Preview
Quick start
Open your terminal and run the following command:
ast-metrics analyze --report-html=<directory> /path/to/your/code
Installation
AST Metrics is a standalone package. It does not require any other software to be installed.
curl -s https://raw.githubusercontent.com/Halleck45/ast-metrics/main/scripts/download.sh|bash
or follow the detailled installation instructions.
[!IMPORTANT] Please always read any script found on the internet before running it, and never use privileged access to run it.
Features
- Designed for CI/CD. You can integrate it into your pipeline to check that your code meets your quality standards.
- Fast and efficient.
- Provides simple and detailed reports.
- Code analysis: cyclomatic complexity, maintainability, size...
- Coupling analysis: instability, afferent coupling...
- Activity analysis: number of commits, bus factor...
Read more in the documentation
Contributing
AST Metrics is experimental and actively developed. We welcome contributions.
Feel free to open a discussion. We love suggestions, ideas, bug reports, and other contributions.
If you want to contribute code, please read the contributing guidelines to get started.
We are looking for help to support new programming languages, stabilize the tool, and enrich it. Here is the list of supported languages:
- ✅ PHP (full)
- 👷 Python (partial)
- 👷 Golang (partial)
- 🕛 Dart
- 🕛 Flutter
- 🕛 TypeScript
- 🕛 Java
License
AST Metrics is open-source software licensed under the MIT license