bloat

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 2 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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(actualLines, expectedLines int) (exceeded bool, ratio float64)

Check compares a commit's actual diff line count against the plan step's stated expectation. expectedLines == 0 means the plan step gave no estimate, in which case the deterministic check abstains (returns false) and leaves scope judgment to the LLM roles.

func IsGenerated added in v0.1.0

func IsGenerated(p string) bool

IsGenerated reports whether a repo-relative path is a machine-generated artifact (lockfile, codegen output, Pact contract, test snapshot) whose size says nothing about the scope of the hand-written change. Plan steps estimate hand-written lines ("~150 lines + 1 generated JSON fixture"), so the SCOPE_BLOAT check must not count these against the expectation. Repo-specific generated paths belong in .gitattributes as linguist-generated, which the caller honours separately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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