Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check interface { Info() CheckInfo Init(ba gorpa.Application) error RunPkg(pkg *gorpa.Package) ([]Finding, error) RunCmp(pkg *gorpa.Component) ([]Finding, error) }
Check implements a vet check
func ComponentCheck ¶
ComponentCheck produces a new check for a Bhojpur GoRPA component
func PackageCheck ¶
func PackageCheck(name, desc string, tpe gorpa.PackageType, chk func(pkg *gorpa.Package) ([]Finding, error)) Check
PackageCheck produces a new check for a Bhojpur GoRPA package
type CheckInfo ¶
type CheckInfo struct { Name string Description string PackageCheck bool AppliesToType *gorpa.PackageType }
CheckInfo describes a check
type Finding ¶
type Finding struct { Check string Component *gorpa.Component Package *gorpa.Package Description string Error bool }
Finding describes a check finding. If the package is nil, the finding applies to the component
func Run ¶
func Run(application gorpa.Application, options ...RunOpt) ([]Finding, []error)
Run runs all checks on all packages
func (Finding) MarshalJSON ¶
MarshalJSON marshals a finding to JSON
type RunOpt ¶
type RunOpt func(*runOptions)
RunOpt modifies the run behaviour
func OnComponents ¶
OnComponents makes run check these components only
func OnPackages ¶
OnPackages makes run check these packages only
Click to show internal directories.
Click to hide internal directories.