find_complexity_hints
Identifies methods with performance risk patterns such as O(n²), recursion, or n+1 queries, sorted by call frequency to prioritize hotspots.
Instructions
Return methods with complexity hints, sorted by CALLS in-degree descending.
Detects static complexity patterns stored on Method nodes during indexing:
O(n2)-candidate, O(n2)-list-scan, recursive, n+1-risk, unbounded-query.
Args:
repo_name: Repository to query.
min_severity: Severity filter:
``"low"`` — include all hints
``"medium"`` — exclude hints that are ONLY ``recursive``
``"high"`` — only include hints containing ``O(n2)`` or ``n+1-risk``
Returns:
List of dicts: ``method_fqn``, ``file_path``, ``line_start``,
``complexity_hint``, ``call_degree``.
Sorted by ``call_degree`` descending (most-called methods first).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_name | Yes | ||
| min_severity | No | medium |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |