ast-metrics

command module
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 13 Imported by: 0

README ยถ

AST Metrics CI Release CodeQL

Terminal application HTML report
AST Metrics is a language-agnostic static code analyzer. HTML report

AST Metrics is a blazing-fast static code analyzer that works across programming languages.. It empowers you to gain deep insights into your code structure, identify potential problems early on, and improve code quality. Leveraging the efficiency of Go, AST Metrics delivers exceptional performance for large codebases.

Twitter | Contributing | Getting started

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

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL