config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Categorize

func Categorize(configData ConfigData, filename string) string

func ResolveConfigPath

func ResolveConfigPath(explicitPath, targetDir string) (string, error)

Types

type ConfigData

type ConfigData struct {
	Foldernames []string
	Matchers    [][]Matcher
	Blacklist   []string
	Warnings    []string
}

func BuildConfigData

func BuildConfigData(rules []RuleSpec) (*ConfigData, error)

func LoadConfig

func LoadConfig(explicitPath, targetDir string) (*ConfigData, string, error)

func ParseConfig

func ParseConfig(configPath string) (*ConfigData, error)

func ParseInline

func ParseInline(s string) (*ConfigData, error)

type Matcher

type Matcher struct {
	Raw   string
	Regex *regexp.Regexp
}

type RuleSpec

type RuleSpec struct {
	Folder   string
	Keywords []string
}

Jump to

Keyboard shortcuts

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