srcmetrics
English | 日本語
Language-independent source code metrics for C, C++, Go, Java, JavaScript, Python, Rust and TypeScript.
srcmetrics measures size, control-flow complexity, nesting, Halstead measures, duplication, call
dependencies and documentation with one definition for every language, and reports each metric
separately — as raw features for statistical analysis, not as a single "readability score".
A value that cannot be computed is null with its reason, never 0.
Documentation: https://lunainsidious.github.io/srcmetrics/
Install
Quick start
let result = analyze_source?;
Links
- Getting started
- Metric reference
- Supported languages and limitations
- API documentation (docs.rs)
- Developer documents (Japanese): design/
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.