Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCodeBlockMap ¶
BuildCodeBlockMap returns a bool slice where index i is true if lines[i] is inside a fenced code block (``` delimited). O(n) single pass.
func DecodeAndRescan ¶
func DecodeAndRescan(target *scanner.Target, compiled []*rules.CompiledRule, cbMap []bool) []scanner.Finding
DecodeAndRescan detects encoded blobs in content, decodes them, and re-scans with provided rules. cbMap is the code block map for the file (nil for non-markdown files).
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher implements the Analyzer interface using compiled pattern rules.
func NewMatcher ¶
func NewMatcher(compiled []*rules.CompiledRule) *Matcher
NewMatcher creates a new pattern matcher with the given compiled rules.