config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 CIConfig

type CIConfig struct {
	MinScore    int  `yaml:"min-score"`
	FailOnScore bool `yaml:"fail-on-score"`
}

CIConfig holds CI/CD related options.

type Config

type Config struct {
	Target  string       `yaml:"target"`
	Threads int          `yaml:"threads"`
	Timeout int          `yaml:"timeout"`
	Modules []string     `yaml:"modules"`
	CI      CIConfig     `yaml:"ci"`
	Output  OutputConfig `yaml:"output"`
	Ignore  []string     `yaml:"ignore"`
}

Config represents the vx.yaml configuration file structure.

func LoadConfig

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

LoadConfig reads a vx.yaml file from the given path. Returns nil, nil if the file does not exist.

type OutputConfig

type OutputConfig struct {
	SARIF    string `yaml:"sarif"`
	Badge    string `yaml:"badge"`
	JSON     string `yaml:"json"`
	HTML     string `yaml:"html"`
	Markdown string `yaml:"markdown"`
}

OutputConfig holds output file paths.

Jump to

Keyboard shortcuts

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