Documentation
¶
Overview ¶
Package starstats computes line and byte statistics for Starlark source files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
Root string
}
Provider computes line and byte statistics for Starlark source files.
+devlore:access=immediate +devlore:bind Root=WorkDir
func (*Provider) ComputeStats ¶
ComputeStats computes line and byte statistics for the given files. If withBytes is true, byte counts are included. If withLOC is true, line counts (LOC, SLOC, comments, blanks) are included.
type Stats ¶
type Stats struct {
Files []FileStats
Totals StatsTotals
}
Stats holds per-file and aggregate statistics.
type StatsTotals ¶
type StatsTotals struct {
FileCount int
TotalBytes int64
TotalLOC, TotalSLOC, TotalComments, TotalBlanks int
}
StatsTotals aggregates statistics across all files.
Click to show internal directories.
Click to hide internal directories.