lint

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type       ActionType
	Left       store.Entry
	Right      store.Entry
	Similarity float64
}

Action represents a proposed change to the memory store.

type ActionType

type ActionType string

ActionType defines the suggested operation for a lint issue.

const (
	ActionMerge  ActionType = "MERGE"
	ActionDelete ActionType = "DELETE"
)

type Linter

type Linter struct {
	// contains filtered or unexported fields
}

Linter analyzes the memory store for health issues.

func New

func New(c controllerInterface) *Linter

New creates a new Linter.

func (*Linter) Analyze

func (l *Linter) Analyze(threshold float64) ([]Action, error)

Analyze scans all entries and identifies redundant or overlapping memories.

Jump to

Keyboard shortcuts

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