Documentation
¶
Overview ¶
Package yze is the analyzer catalog for the yze family: it aggregates every yze-<name> analyzer's registration and filters the set by category. The cmd/yze binary drives this catalog through the go-yze runner.
Index ¶
- Constants
- func Emit(w io.Writer, format Format, report goyze.Report) error
- func Filter(regs []goyze.Registration, categories []goyze.Category) []goyze.Registration
- func LoadConfig(read func(path string) ([]byte, error), path string) (goyze.Settings, error)
- func Registrations() []goyze.Registration
- type Format
Constants ¶
const ErrConfig errs.Const = "cannot load yze config"
ErrConfig reports a yze configuration file that cannot be read or parsed.
const ErrUnknownFormat errs.Const = "unknown output format"
ErrUnknownFormat reports an output format the aggregator does not support.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter(regs []goyze.Registration, categories []goyze.Category) []goyze.Registration
Filter selects the registrations matching the given categories. An empty category set matches every analyzer; otherwise a registration matches when it carries any of the categories.
func LoadConfig ¶ added in v0.2.0
LoadConfig reads and parses a yze config file into per-analyzer settings keyed by analyzer name then setting name, ready for go-yze's ApplyConfig. The reader is injected so callers control filesystem access.
func Registrations ¶
func Registrations() []goyze.Registration
Registrations returns every analyzer in the suite, in stable rule-id order.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
yze
command
Command yze runs the gomatic yze analyzer suite over the given package patterns and emits a normalized report (the stickler-json contract by default).
|
Command yze runs the gomatic yze analyzer suite over the given package patterns and emits a normalized report (the stickler-json contract by default). |