config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version int    `yaml:"version"`
	Scan    Scan   `yaml:"scan"`
	LLM     LLM    `yaml:"llm"`
	Rules   Rules  `yaml:"rules"`
	Output  Output `yaml:"output"`
}

func Default

func Default() *Config

func Load

func Load(path string) (*Config, error)

type LLM

type LLM struct {
	Provider    string  `yaml:"provider"`
	Model       string  `yaml:"model"`
	Temperature float64 `yaml:"temperature"`
	APIKey      string  `yaml:"api_key"`
	BaseURL     string  `yaml:"base_url"`
}

type Output

type Output struct {
	Format  string `yaml:"format"`
	CIMode  bool   `yaml:"ci_mode"`
	OutFile string `yaml:"out_file"`
}

type RuleConfig

type RuleConfig struct {
	Severity string `yaml:"severity"`
}

type Rules

type Rules struct {
	Hallucination RuleConfig `yaml:"hallucination"`
	LogicErrors   RuleConfig `yaml:"logic_errors"`
	Security      RuleConfig `yaml:"security"`
}

type Scan

type Scan struct {
	Tiers     []int    `yaml:"tiers"`
	MinScore  int      `yaml:"min_score"`
	Languages []string `yaml:"languages"`
}

Jump to

Keyboard shortcuts

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