AST Metrics is a blazing-fast static code analyzer. It provides metrics about your code, and helps you to identify potential problems early on.
Documentation | Contributing | Twitter
Open your terminal and run the following command:
ast-metrics analyze --report-html=<directory> /path/to/your/code
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.
Static code analysis is a game-changer for improving code quality. It helps you catch potential issues early, enforce coding standards, and gain deeper insights into your codebase.
With AST Metrics, you can:
Whether you're maintaining an existing codebase or building a new one, AST Metrics empowers you to write better, more maintainable code.
Read more in the documentation
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'd like to contribute to the codebase, check out the contributing guide 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:
AST Metrics is open-source software licensed under the MIT license