Discover Packages
github.com/amberpixels/f10/cli
internal
command
audit
package
Version:
v0.63.0
Opens a new window with list of versions in this module.
Published: Nov 16, 2026
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package audit is the f10 audit command: the map an audit partitions and
briefs its reviewers from, churn, tasks and pain per area over a range.
AllCommits is how far back `all` reads, because the full history would
crowd out the code.
View Source
const NoLedger = "No ledger history for this range."
NoLedger is the pain block when the ledger holds nothing for the range.
Area is a file's parent directory, the partition churn sums by.
Command is the audit noun.
type Churn struct {
Dir string `json:"dir"`
Added int `json:"added"`
Deleted int `json:"deleted"`
Commits int `json:"commits"`
}
Churn is one area's lines over the range.
Commit is one commit of the range, with the task it maps to.
Commits reads the range in one git log: a commit's task is its Task: or
Change: trailer, else what regression.CommitTask finds, so audit, history
and attribution agree on which task owns a commit.
type FileStat struct {
Path string
Added, Deleted int
}
FileStat is one file's numstat line.
type Map struct {
Range string `json:"range"`
Churn []Churn `json:"churn"`
Tasks []Task `json:"tasks"`
Upkeep []string `json:"upkeep"`
Pain *pain .Map `json:"pain"`
Ledger bool `json:"ledger"`
}
Map is what the command prints.
Build is the churn and the task map; the pain map is added by the caller,
which reads the ledger.
Write is the text form: churn, tasks, upkeep, then the pain map.
type Task struct {
ID string `json:"id"`
Commits []string `json:"commits"`
Areas []string `json:"areas"`
}
Task is one task of the range: its commits and the areas they touched.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.