Documentation
¶
Overview ¶
Package collectors provides signal extraction modules for stringer.
Package collectors provides signal extraction modules for stringer.
Package collectors provides signal extraction modules for stringer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubCollector ¶ added in v0.3.0
type GitHubCollector struct {
// contains filtered or unexported fields
}
GitHubCollector imports open issues, pull requests, and actionable review comments from GitHub.
func (*GitHubCollector) Collect ¶ added in v0.3.0
func (c *GitHubCollector) Collect(ctx context.Context, repoPath string, opts signal.CollectorOpts) ([]signal.RawSignal, error)
Collect fetches open issues, PRs, and review comments from GitHub and returns them as raw signals.
func (*GitHubCollector) Name ¶ added in v0.3.0
func (c *GitHubCollector) Name() string
Name returns the collector name used for registration and filtering.
type GitlogCollector ¶
type GitlogCollector struct{}
GitlogCollector examines git history for reverts, high-churn files, and stale branches.
func (*GitlogCollector) Collect ¶
func (c *GitlogCollector) Collect(ctx context.Context, repoPath string, opts signal.CollectorOpts) ([]signal.RawSignal, error)
Collect scans the repository at repoPath for git-level signals.
func (*GitlogCollector) Name ¶
func (c *GitlogCollector) Name() string
Name returns the collector name used for registration and filtering.
type LotteryRiskCollector ¶ added in v0.3.0
type LotteryRiskCollector struct{}
LotteryRiskCollector analyzes git blame and commit history to identify directories with low lottery risk (single-author ownership risk).
func (*LotteryRiskCollector) Collect ¶ added in v0.3.0
func (c *LotteryRiskCollector) Collect(ctx context.Context, repoPath string, opts signal.CollectorOpts) ([]signal.RawSignal, error)
Collect scans the repository at repoPath for directories with low bus factor and returns them as raw signals.
func (*LotteryRiskCollector) Name ¶ added in v0.3.0
func (c *LotteryRiskCollector) Name() string
Name returns the collector name used for registration and filtering.
type PatternsCollector ¶
type PatternsCollector struct{}
PatternsCollector detects structural code-quality patterns such as oversized files, missing tests, and low test-to-source ratios.
func (*PatternsCollector) Collect ¶
func (c *PatternsCollector) Collect(ctx context.Context, repoPath string, opts signal.CollectorOpts) ([]signal.RawSignal, error)
Collect walks source files in repoPath, detects pattern-based signals, and returns them as raw signals.
func (*PatternsCollector) Name ¶
func (c *PatternsCollector) Name() string
Name returns the collector name used for registration and filtering.
type TodoCollector ¶
type TodoCollector struct{}
TodoCollector scans repository files for TODO, FIXME, HACK, XXX, BUG, and OPTIMIZE comments, enriches them with git blame data, and produces scored RawSignal values.
func (*TodoCollector) Collect ¶
func (c *TodoCollector) Collect(ctx context.Context, repoPath string, opts signal.CollectorOpts) ([]signal.RawSignal, error)
Collect walks source files in repoPath, extracts TODO-style comments, and returns them as raw signals with confidence scores and blame attribution.
func (*TodoCollector) Name ¶
func (c *TodoCollector) Name() string
Name returns the collector name used for registration and filtering.