analyzer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileAnalyzer

type FileAnalyzer interface {
	Analyze(ctx context.Context, path string) FileResult
}

type FileResult added in v0.4.0

type FileResult struct {
	Path     string
	Format   binary.Format
	Build    toolchain.BuildInfo
	SHA256   string
	Findings []FindingWithSuggestion
	Error    error
	Skipped  bool
}

func (*FileResult) FailedRules added in v0.4.0

func (r *FileResult) FailedRules() int

func (*FileResult) PassedRules added in v0.4.0

func (r *FileResult) PassedRules() int

type FindingWithSuggestion added in v0.4.0

type FindingWithSuggestion struct {
	rule.Finding
	Suggestion string
}

FindingWithSuggestion extends rule.Finding with a fix suggestion.

type Report added in v0.4.0

type Report struct {
	Results []FileResult
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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