themecheck

package
v0.61.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 8 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

Overview

Package themecheck guards the embedded monitor against presentation state that cannot follow a live, model-scoped theme.

Index

Constants

This section is empty.

Variables

View Source
var FrozenThemeAllowlist = map[string]string{
	"pkg/monitor/overlay.go#DimStyle": "deprecated standalone OverlayModal API; live Model rendering bypasses it",
}

FrozenThemeAllowlist contains source-compatibility globals that are not used by a live Model. New entries require the same explicit API rationale.

View Source
var RawColorAllowlist = map[string]string{
	"pkg/monitor/theme.go":        "monitor default palette and model-owned style derivation",
	"pkg/monitor/modal/styles.go": "declarative modal default palette and instance style derivation",
	"pkg/monitor/markdown.go":     "legacy standalone markdown defaults and palette derivation",
}

RawColorAllowlist is deliberately limited to the functions that define or derive td's standalone defaults. Renderers and stateful models do not belong here: their colors must come from their model's Theme.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	File string
	Line int
	Kind string
	Text string
}

Finding identifies a frozen package-init style or an unexplained raw color.

func ScanMonitor

func ScanMonitor(root string) ([]Finding, error)

ScanMonitor audits every production Go file below pkg/monitor. Tests are excluded so explicit palettes remain useful as high-contrast fixtures. Raw color analysis resolves string constants and concatenations, follows static string-returning helper functions, and identifies function parameters that flow transitively into lipgloss.Color. It deliberately stops at dynamic runtime values, which are the legitimate Theme-slot path.

func (Finding) String

func (f Finding) String() string

Jump to

Keyboard shortcuts

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