package main func init() { register(Check{ Seq: 107, ID: "10disc", Title: "Plugin frontend discovery", Run: func(ctx *ScanContext, rep *Reporter) { if len(ctx.unresolvedPluginRoots) > 0 { rep.Fail("%d plugin root(s) could not be resolved", len(ctx.unresolvedPluginRoots)) for _, root := range ctx.unresolvedPluginRoots { rep.Findingf("- %s", root) } } else if len(ctx.resolvedPluginTargets) > 0 { rep.OK("Resolved %d plugin root(s)", len(ctx.resolvedPluginTargets)) } }, }) }