Versions in this module Expand all Collapse all v0 v0.34.0 Aug 17, 2026 Changes in this version + const ErrConfig + const ErrSourceRead + const ErrSourceSetting + const ErrSourceWalk + const ErrUnknownFormat + const ErrUnknownRuleFormat + func ApplySourceConfig(analyzers []SourceAnalyzer, settings goyze.Settings) error + func Emit(w io.Writer, format Format, report goyze.Report) error + func EmitRules(w io.Writer, format RuleFormat, rules []Rule) error + func Filter(regs []goyze.Registration, categories []goyze.Category) []goyze.Registration + func GitCheckIgnore(files []string) (map[string]bool, error) + func LoadConfig(read func(path string) ([]byte, error), path ConfigPath) (goyze.Settings, error) + func Registrations() []goyze.Registration + func RootsOf(patterns []goyze.Pattern) []string + func RunSource(read goyze.FileReader, walk WalkDir, ignore CheckIgnore, ...) (goyze.Report, error) + type CheckIgnore func(files []string) (map[string]bool, error) + type ConfigPath string + type Format string + const FormatSticklerJSON + const FormatText + type Rule struct + Categories []goyze.Category + Doc string + ID string + Name string + URL string + func CatalogRules(regs []goyze.Registration, analyzers []SourceAnalyzer) []Rule + func GoRules(regs []goyze.Registration) []Rule + func SQLRules(analyzers []SourceAnalyzer) []Rule + type RuleFormat string + const RuleFormatGrit + const RuleFormatSARIF + type SourceAnalyzer struct + Analyze func(path, source string) ([]goyze.Diagnostic, error) + Categories []goyze.Category + Claims func(path string) bool + Doc string + Name goyze.AnalyzerName + URL goyze.HelpURL + func FilterSource(analyzers []SourceAnalyzer, categories []goyze.Category) []SourceAnalyzer + func SourceAnalyzers() []SourceAnalyzer + func (a SourceAnalyzer) RuleID() string + type WalkDir func(root string, fn fs.WalkDirFunc) error