Skip to content

Commit bb4595d

Browse files
authored
Merge pull request #30 from StrangeDaysTech/feat/arborist-all-languages
feat: enable all 12 arborist-metrics languages
2 parents ab8eb37 + 32fe1ca commit bb4595d

5 files changed

Lines changed: 71 additions & 4 deletions

File tree

cli/Cargo.lock

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tar = "0.4"
3535
ratatui = { version = "0.29", optional = true, default-features = false, features = ["crossterm"] }
3636
crossterm = { version = "0.28", optional = true }
3737
pulldown-cmark = { version = "0.12", optional = true }
38-
arborist-metrics = { version = "0.1", optional = true }
38+
arborist-metrics = { version = "0.1", optional = true, features = ["all"] }
3939

4040
[features]
4141
default = ["tui", "analyze"]

cli/src/analysis_engine.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ const EXCLUDED_DIRS: &[&str] = &[
1616
"__pycache__",
1717
];
1818

19-
/// File extensions recognized for analysis (matches arborist default features)
19+
/// File extensions recognized for analysis (matches arborist "all" features)
2020
const SOURCE_EXTENSIONS: &[&str] = &[
2121
"rs", "py", "js", "ts", "jsx", "tsx", "java", "go",
22+
"cs", "cpp", "cc", "cxx", "c", "h", "php", "kt", "swift",
2223
];
2324

2425
/// Full analysis report

docs/adopters/CLI-REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ Analyze code complexity using cognitive and cyclomatic metrics powered by [arbor
468468
| `--output` | `text` | Output format: `text`, `json`, or `markdown` |
469469
| `--top` || Show only top N most complex functions |
470470

471-
**Supported languages:** Rust, Python, JavaScript, TypeScript, Java, Go
471+
**Supported languages:** Rust, Python, JavaScript, TypeScript, Java, Go, C, C++, C#, PHP, Kotlin, Swift
472472

473473
**Threshold resolution:** CLI flag → `.devtrail/config.yml` → default (8)
474474

docs/i18n/es/adopters/CLI-REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Analiza la complejidad del código fuente usando métricas cognitivas y ciclomá
366366
| `--output` | `text` | Formato de salida: `text`, `json` o `markdown` |
367367
| `--top` || Mostrar solo las N funciones más complejas |
368368

369-
**Lenguajes soportados:** Rust, Python, JavaScript, TypeScript, Java, Go
369+
**Lenguajes soportados:** Rust, Python, JavaScript, TypeScript, Java, Go, C, C++, C#, PHP, Kotlin, Swift
370370

371371
**Resolución de umbral:** flag CLI → `.devtrail/config.yml` → predeterminado (8)
372372

0 commit comments

Comments
 (0)