Imports analyzer reference¶
The imports analyzer extracts import and dependency information from source code using UAST parsing. It operates in both static mode (single-file analysis) and history mode (tracking import usage per developer over time).
For the conceptual model — what it measures and how the history-mode pipeline works — see Understanding import and dependency analysis. To run it, see the Quick start.
Configuration options¶
Static mode¶
No configuration options. Uses UAST directly.
History mode¶
| Option | Type | Default | Description |
|---|---|---|---|
Imports.Goroutines | int | 4 | Number of parallel goroutines for import extraction |
Imports.MaxFileSize | int | 1048576 | Maximum file size in bytes; larger files are skipped |
Set options via the configuration file:
Example output¶
See also¶
- Understanding import and dependency analysis — the mental model, history-mode architecture, and limitations.
- Quick start — run static and history analysis.