staleness

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package staleness detects map-quality advisory findings: uncovered paths, dead module rules, and stale reviewed_at timestamps.

All findings carry kind "advisory" and never contribute to gate verdicts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(g *graph.Graph, cfg config.StalenessConfig, now time.Time) []finding.Finding

Check inspects the graph against the module map and returns advisory findings for any of the three staleness conditions:

  • "map/uncovered_path": a package or file node has no matching module paths glob.
  • "map/dead_rule": a module paths glob matches zero graph nodes.
  • "map/stale_review": a module's reviewed_at is set and older than threshold.

Returns nil when cfg.Enabled is false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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