Expand description
File-level structural metrics.
An AST rule matches nodes; a metric rule measures a property of the whole file and fires once when the measured value exceeds a threshold. Metrics are computed directly on the parsed tree rather than through ast-grep, which has no notion of a whole-file match.
Enums§
- Metric
- A structural property measured over a whole file.