Ragex.Analyzers.Metastatic
(Ragex v0.14.0)
View Source
Language-agnostic analyzer using Metastatic MetaAST.
Primary entity extraction via Ragex.Analyzers.MetaASTExtractor, enriched
with per-function complexity metrics from Metastatic.Analysis.Complexity.
Falls back to native language analyzers when Metastatic parsing fails and
the :fallback_to_native_analyzers feature flag is enabled.
Enrichment
Each function in the analysis result is enriched with a :metastatic key:
%{
metastatic: %{
cyclomatic: 3,
cognitive: 2,
max_nesting: 1,
halstead: %{volume: 50.0, difficulty: 2.5, ...},
loc: %{physical: 10, logical: 8, ...},
function_metrics: %{statement_count: 8, ...}
}
}