engine

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

allowlist_fold.go — the run-scoped state exemption suppression needs beyond the finding it is judging. Split from engine.go, which the 750-line vendor cap bounds; same package.

Package engine runs compiled rules over a FileSet: phase 1 fans files out to a worker pool, phase 2 fans finalizers out to a second one (spec §6). A crashed rule is an engine error, never a pass (spec §11).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(rls []*config.Rule, fset *scan.FileSet, workers int) ([]finding.Finding, error)

Run evaluates every rule against every in-scope file, then finalizers. workers <= 0 means GOMAXPROCS. Findings come back deterministically sorted and include suppressed findings (spec §5 exemptions): callers that gate on findings must filter with finding.Unsuppressed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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