stats

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Text          string    `json:"text"`
	Phrase        string    `json:"phrase"`
	FilePath      string    `json:"file_path"`
	Line          int       `json:"line"`
	Author        string    `json:"author"`
	AuthorEmail   string    `json:"author_email"`
	AuthorTime    time.Time `json:"author_time"`
	IntroducedSHA string    `json:"introduced_sha"`
	AgeBucket     string    `json:"age_bucket"`
}

Finding is a compact stats view of a current finding.

type Report

type Report struct {
	Total       int            `json:"total"`
	ByPhrase    map[string]int `json:"by_phrase"`
	ByAgeBucket map[string]int `json:"by_age_bucket"`
	ByDirectory map[string]int `json:"by_directory"`
	Oldest      []Finding      `json:"oldest"`
}

Report summarizes current findings with Git-derived history.

func Build

func Build(found todos.ToDos, now time.Time) Report

Build groups current findings into a deterministic stats report.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL