{"repo":"StrangeDaysTech/arborist-metrics","free":true,"listed":false,"github":"https://github.com/StrangeDaysTech/arborist-metrics","clone":"git clone https://github.com/StrangeDaysTech/arborist-metrics.git","description":"Multi-language code complexity metrics (cognitive, cyclomatic, SLOC) powered by tree-sitter","language":"Rust","stars":10,"topics":["cognitive","complexity","complexity-analysis","complexity-measure","cyclomatic","cyclomatic-complexity","metrics","tree-sitter"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Arborist Multi-language code complexity metrics powered by tree-sitter. Arborist computes cognitive complexity (SonarSource), cyclomatic complexity (McCabe), and source lines of code (SLOC) for functions and methods across 12 programming languages -- all from a single, embeddable Rust library. Supported Languages Language Feature flag Extensions Default ---------- ------------- ------------ --------- Rust rust .rs Yes Python python .py , .pyi Yes JavaScript javascript .js , .jsx , .mjs , .cjs Yes TypeScript typescript .ts , .tsx , .mts , .cts Yes Java java .java Yes Go go .go Yes C# csharp .cs Opt-in C++ cpp .cpp , .cc , .cxx , .hpp , .hxx , .hh Opt-in C c .c , .h Opt-in PHP php .php Opt-in Kotlin kotlin .kt , .kts Opt-in Swift swift .swift Opt-in Feature Flags Arborist uses Cargo feature flags to control which tree-sitter grammars are compiled. Each language is an independent, optional feature that pulls in its corresponding tree-sitter grammar crate. To enable all 12 languages, use features = [\"all\"] . Tiers - Tier 1 (default): Rust, Python, JavaScript, TypeScript, Java, Go -- the most mature tree-sitter grammars. Enabled automatically unless you set default-features = false . - Tier 2 (opt-in): C#, C++, C, PHP, Kotlin, Swift -- require enabling their feature flag explicitly or using the all composite feature. Individual features Feature flag Language Tier tree-sitter crate ------------- ---------- ------ ------------------- rust Rust 1 tree-sitter-rust python Python 1 tree","default_branch":null,"files":null,"tree":[],"storefront":"/r/StrangeDaysTech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/StrangeDaysTech/arborist-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}