Documentation
¶
Overview ¶
Package linter performs static and AI-based quality analysis on cloop task plans. Static checks run without any AI call; AI checks are batched into a single provider call.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFixes ¶
func ApplyFixes(plan *pm.Plan, fixes []FixSuggestion) int
ApplyFixes updates the plan in-place with the generated fixes.
Types ¶
type FixSuggestion ¶
FixSuggestion holds an AI-generated field rewrite for a single task.
type Issue ¶
type Issue struct {
// TaskID is the task this issue applies to (0 = plan-level).
TaskID int
// Field is the task field that is affected (e.g. "title", "description", "priority").
Field string
// Severity indicates how serious the issue is.
Severity Severity
// Code is a short machine-readable identifier (e.g. "duplicate-title").
Code string
// Message is the human-readable description of the problem.
Message string
// Suggestion is an optional actionable improvement hint (may be empty for static checks).
Suggestion string
}
Issue is a single lint finding for a task plan.
type Options ¶
type Options struct {
// TaskID, when non-zero, restricts linting to a single task.
TaskID int
// SkipAI disables the AI-based checks (static checks still run).
SkipAI bool
// Provider and Model are used for the AI batch call.
Provider provider.Provider
Model string
}
Options configure the Lint call.
Click to show internal directories.
Click to hide internal directories.