rule

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r Rule)

Types

type Applicability

type Applicability struct {
	Platform  binary.Platform
	Compilers map[toolchain.Compiler]CompilerRequirement
}

type CompilerRequirement

type CompilerRequirement struct {
	MinVersion     toolchain.Version
	DefaultVersion toolchain.Version
	Flag           string
}

type ELFRule

type ELFRule interface {
	Rule
	Execute(bin *binary.ELFBinary) ExecuteResult
}

type ExecuteResult

type ExecuteResult struct {
	Status  Status
	Message string
}

type ProcessedResult

type ProcessedResult struct {
	ExecuteResult
	RuleID     string
	Name       string
	Suggestion string
}

type Rule

type Rule interface {
	ID() string
	Name() string
	Applicability() Applicability
}

func Get

func Get(id string) Rule

type Status

type Status int
const (
	StatusPassed Status = iota
	StatusFailed
	StatusSkipped
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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