model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 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

Index

Constants

View Source
const (
	TransportStdio      = "stdio"
	TransportStreamable = "streamable-http"
	TransportSSE        = "sse"
	TransportStatic     = "static"
	TransportSource     = "source"
)

Transport kinds. TransportSource marks a snapshot synthesized from source: it contains only fields the registration pass resolved. An absent schema, annotation, or instruction is not a declaration that the live server omits it.

View Source
const DefaultBlockingSeverity = SeverityLow

DefaultBlockingSeverity is the lowest severity that makes a completed scan UNSAFE

View Source
const SchemaVersion = "1.0.0"

SchemaVersion is the version of the serialized result model. Bump it when a consumer would have to change to read the output. A change to finding identity also requires a bump because existing suppression baselines will no longer match.

Variables

This section is empty.

Functions

func FingerprintScope

func FingerprintScope(t Target) string

FingerprintScope uses only operator-supplied identity, never target-declared text. Remote uses the redacted URL; stdio uses command and args; static uses the operator name or file basename; package uses ecosystem and name so exceptions survive a version bump. Source uses an explicit operator name when present. Without one, its scope is empty, so equal finding paths and lines can collide across source trees.

func SortFindings

func SortFindings(fs []Finding)

SortFindings orders findings most severe first, then by confidence, then by ID so reports and SARIF output are byte-stable across runs

Types

type AnalyzerError

type AnalyzerError struct {
	Kind    string `json:"kind"` // config | network | timeout | parse | internal | policy | unavailable
	Message string `json:"message"`
	// Fatal marks an error that invalidates the analyzer's whole result
	Fatal bool `json:"fatal"`
}

AnalyzerError is a failure an analyzer wants to report without pretending it did not happen

func (AnalyzerError) Error

func (e AnalyzerError) Error() string

type AnalyzerResult

type AnalyzerResult struct {
	Analyzer string         `json:"analyzer"`
	Status   AnalyzerStatus `json:"status"`
	// Required analyzers gate the verdict. An enabled analyzer is required
	// unless policy explicitly marks it best-effort.
	Required bool `json:"required"`

	Findings []Finding       `json:"findings,omitempty"`
	Warnings []string        `json:"warnings,omitempty"`
	Errors   []AnalyzerError `json:"errors,omitempty"`
	Coverage Coverage        `json:"coverage"`

	StartedAt  time.Time     `json:"started_at"`
	FinishedAt time.Time     `json:"finished_at"`
	Duration   time.Duration `json:"duration_ns"`
}

AnalyzerResult is what every analyzer returns. There is no way to return "nothing happened" implicitly: Status is required and an empty status is treated as an error by the aggregator.

func Errorf

func Errorf(name, kind string, format string, args ...any) AnalyzerResult

Errorf builds a failed AnalyzerResult. Analyzers should use it instead of returning an empty result, which would read as success.

func Skipped

func Skipped(name, reason string) AnalyzerResult

Skipped builds a SKIPPED result with a mandatory reason

func Unavailable

func Unavailable(name, reason string) AnalyzerResult

Unavailable builds an UNAVAILABLE result, for analyzers compiled out or missing a required external dependency

type AnalyzerStatus

type AnalyzerStatus string

AnalyzerStatus is how an analyzer run ended

const (
	// AnalyzerCompleted means the analyzer ran to the end and its coverage adds up
	AnalyzerCompleted AnalyzerStatus = "COMPLETED"
	// AnalyzerPartial means it produced usable output but could not finish everything
	AnalyzerPartial AnalyzerStatus = "PARTIAL"
	// AnalyzerFailed means it failed. Its findings, if any, are not trustworthy as a complete set
	AnalyzerFailed AnalyzerStatus = "ERROR"
	// AnalyzerSkipped means it was not applicable or was turned off
	AnalyzerSkipped AnalyzerStatus = "SKIPPED"
	// AnalyzerUnavailable means it is not present in this build (for example a
	// YARA-free build). Distinct from SKIPPED so a missing build tag is visible.
	AnalyzerUnavailable AnalyzerStatus = "UNAVAILABLE"
)

type Coverage

type Coverage struct {
	FilesDiscovered int `json:"files_discovered"`
	FilesParsed     int `json:"files_parsed"`
	FilesFailed     int `json:"files_failed"`
	FilesSkipped    int `json:"files_skipped"`

	SymbolsDiscovered   int `json:"symbols_discovered,omitempty"`
	FunctionsDiscovered int `json:"functions_discovered,omitempty"`

	CapabilitiesDiscovered int `json:"mcp_capabilities_discovered"`
	CapabilitiesAnalyzed   int `json:"mcp_capabilities_analyzed"`
	CapabilitiesSkipped    int `json:"mcp_capabilities_skipped"`

	// SkipReasons explains omissions. CapabilitiesSkipped means there was
	// nothing else to inspect, not that analysis failed; failed work stays
	// unaccounted so Gaps reports it.
	SkipReasons []string `json:"skip_reasons,omitempty"`

	// LimitsHit names any resource limit that stopped the analyzer early: a
	// file size cap, a file count cap, a pagination cap. A limit is the
	// scanner protecting itself, never an explanation of why some code is
	// safe, so any entry here is a gap.
	LimitsHit []string `json:"limits_hit,omitempty"`
}

Coverage records what an analyzer actually looked at. It exists because "found nothing" and "looked at nothing" are indistinguishable without it, and only one of those is good news.

func (*Coverage) Add

func (c *Coverage) Add(o Coverage)

Add accumulates coverage within a single analyzer, for example one pass per language or per package

func (*Coverage) AddSkipReason

func (c *Coverage) AddSkipReason(reason string)

AddSkipReason records reason unless it is already there, so a reason that applies to many files or capabilities appears once

func (Coverage) Complete

func (c Coverage) Complete() bool

Complete reports whether coverage accounting adds up

func (Coverage) Gaps

func (c Coverage) Gaps() []string

Gaps lists coverage losses that prevent a complete result. Unexplained skips and analyzers that examined nothing create gaps. Any skip reason accounts for both skip counts, but the zero-parsed-file and zero-analyzed-capability floors still apply. Callers must also record omissions that could hide relevant content in LimitsHit; a skip reason alone is appropriate for harmless duplicates, such as a second path to a directory already walked.

func (*Coverage) Merge

func (c *Coverage) Merge(o Coverage)

Merge builds an optimistic scan-level display by taking each counter's maximum. It may be internally inconsistent; verdicts use per-analyzer coverage instead.

type Evidence

type Evidence struct {
	Level       EvidenceLevel `json:"level"`
	Kind        string        `json:"kind,omitempty"` // e.g. "yara_match", "taint_path", "http_response"
	Description string        `json:"description,omitempty"`
	File        string        `json:"file,omitempty"`
	Line        int           `json:"line,omitempty"`
	Snippet     string        `json:"snippet,omitempty"`
	// Path is the ordered source-to-sink trace for dataflow evidence
	Path []FlowStep `json:"path,omitempty"`
	// Data holds analyzer-specific structured detail (request/response
	// traces, sandbox observations, OSV records)
	Data map[string]any `json:"data,omitempty"`
}

Evidence is one observation backing a finding. Snippets may contain target-controlled or sensitive text, so analyzers redact secrets and human-facing writers escape unsafe characters.

type EvidenceLevel

type EvidenceLevel string

EvidenceLevel says how the scanner learned something. A regex match on a tool description and a payload that actually executed in a sandbox are both findings, but they are not the same claim, so they never share a level.

const (
	// EvidenceHeuristic is a guess: keyword match, naming convention, shape
	EvidenceHeuristic EvidenceLevel = "HEURISTIC"
	// EvidenceStatic came from parsing the source, not from grepping it
	EvidenceStatic EvidenceLevel = "STATIC"
	// EvidenceDataflow is a traced source-to-sink path
	EvidenceDataflow EvidenceLevel = "DATAFLOW"
	// EvidenceProtocol came from observed MCP protocol behaviour
	EvidenceProtocol EvidenceLevel = "PROTOCOL"
	// EvidenceDynamic came from running the target
	EvidenceDynamic EvidenceLevel = "DYNAMIC"
	// EvidenceConfirmed means a controlled payload produced the predicted effect
	EvidenceConfirmed EvidenceLevel = "CONFIRMED"
)

func (EvidenceLevel) Rank

func (e EvidenceLevel) Rank() int

func (EvidenceLevel) Valid

func (e EvidenceLevel) Valid() bool

type Finding

type Finding struct {
	ID       string `json:"id"`       // stable per-finding fingerprint
	RuleID   string `json:"rule_id"`  // the rule/check that fired
	Category string `json:"category"` // command_injection, tool_poisoning, ...
	Title    string `json:"title"`

	Severity      Severity      `json:"severity"`
	Confidence    float64       `json:"confidence"` // 0..1
	EvidenceLevel EvidenceLevel `json:"evidence_level"`

	File string `json:"file,omitempty"`
	Line int    `json:"line,omitempty"`
	Tool string `json:"tool,omitempty"` // MCP capability name, if capability-scoped

	Description string     `json:"description"`
	Remediation string     `json:"remediation,omitempty"`
	Evidence    []Evidence `json:"evidence,omitempty"`

	Analyzer string              `json:"analyzer"`
	Taxonomy []TaxonomyReference `json:"taxonomy,omitempty"`

	// Suppressed findings stay in the result but do not count towards the
	// verdict, so a baseline never makes evidence vanish
	Suppressed        bool   `json:"suppressed,omitempty"`
	SuppressionReason string `json:"suppression_reason,omitempty"`

	// Triage says how far a reader can rely on the finding before checking it; TriageReason says
	// why it landed there. An analyzer may set it; Aggregate fills it in from severity and
	// evidence level otherwise.
	Triage       Triage `json:"triage,omitempty"`
	TriageReason string `json:"triage_reason,omitempty"`

	// SourceClass, Reachability and ReachableFrom describe a dataflow finding's origin: who
	// controls the value (mcp_input, external_content, environment), whether the function it
	// enters in is reachable from an MCP handler (yes, possible, no, unknown), and through which
	// capabilities
	SourceClass   string   `json:"source_class,omitempty"`
	Reachability  string   `json:"reachability,omitempty"`
	ReachableFrom []string `json:"reachable_from,omitempty"`

	// FindingKind separates a dangerous capability - a tool whose stated purpose is the risky
	// action, such as running caller-supplied SQL - from a vulnerability; empty means a
	// vulnerability. Capability names which one: process_execution, code_execution,
	// file_access, network_request, sql_execution.
	FindingKind FindingKind `json:"finding_kind,omitempty"`
	Capability  string      `json:"capability,omitempty"`
}

Finding is a single security observation. Every field that explains *why* the scanner believes it is mandatory: Analyzer, EvidenceLevel and at least one Evidence entry. A finding without evidence is a rumour.

func (*Finding) EnsureID

func (f *Finding) EnsureID(scope string)

EnsureID fills in the fingerprint when the analyzer did not set an ID

func (Finding) Fingerprint

func (f Finding) Fingerprint(scope string) string

Fingerprint returns a stable per-target finding ID. Scope prevents one target's baseline from suppressing another; line separates findings in the same file and makes moved findings require review. This churn keeps a stale exception from silently covering a new location.

func (Finding) Validate

func (f Finding) Validate() error

Validate catches the mistakes that would let a finding through without the context a reader needs to act on it

type FindingKind added in v1.2.0

type FindingKind string

FindingKind is what sort of risk a finding describes

const FindingDangerousCapability FindingKind = "dangerous_capability"

FindingDangerousCapability marks a tool that does the risky thing by design

type FlowStep

type FlowStep struct {
	Kind     string `json:"kind"` // source | transform | sanitizer | unknown | sink
	Symbol   string `json:"symbol,omitempty"`
	File     string `json:"file,omitempty"`
	Line     int    `json:"line,omitempty"`
	Detail   string `json:"detail,omitempty"`
	Resolved bool   `json:"resolved"`
}

FlowStep is one hop in a taint path

type PromptArgument

type PromptArgument struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	Required    bool   `json:"required,omitempty"`
}

type PromptInfo

type PromptInfo struct {
	Name        string           `json:"name"`
	Title       string           `json:"title,omitempty"`
	Description string           `json:"description,omitempty"`
	Arguments   []PromptArgument `json:"arguments,omitempty"`
	// Text is the rendered prompt body, present only when prompts/get ran
	Text string `json:"text,omitempty"`
	// Rendered distinguishes an empty response from a prompt that was never fetched
	Rendered bool `json:"rendered,omitempty"`
	// RenderError records why prompts/get failed for this prompt, when it
	// was attempted. Text empty with RenderError empty means nobody asked;
	// Text empty with RenderError set means the server was asked and
	// refused (a required argument, most often) - the two are different
	// gaps and a reader needs to tell them apart.
	RenderError string `json:"render_error,omitempty"`
	// TextTruncated marks a successful render whose body exceeded the cap
	TextTruncated bool `json:"text_truncated,omitempty"`
}

PromptInfo mirrors an MCP prompt declaration

type ResourceInfo

type ResourceInfo struct {
	URI         string `json:"uri,omitempty"`
	URITemplate string `json:"uri_template,omitempty"`
	Name        string `json:"name,omitempty"`
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
	MIMEType    string `json:"mime_type,omitempty"`
	// Content is populated only when resources/read was allowed to run
	Content string `json:"content,omitempty"`
	// Fetched reports whether resources/read was attempted and returned
	// successfully for this resource, whatever the body turned out to
	// contain - including an empty one. Same reasoning as
	// PromptInfo.Rendered: Content alone cannot tell "never fetched" apart
	// from "fetched and empty", and an absent field in an older snapshot
	// must decode as the former.
	Fetched bool `json:"fetched,omitempty"`
	// ReadError records why resources/read failed for this resource, when
	// it was attempted - the resource equivalent of PromptInfo.RenderError
	ReadError string `json:"read_error,omitempty"`
	// ContentTruncated reports that Content is not the whole body: it was
	// cut at the scanner's own per-resource cap, or a block of it was binary
	// and went unread beside blocks that did not
	ContentTruncated bool `json:"content_truncated,omitempty"`
}

ResourceInfo mirrors an MCP resource or resource template declaration

type ScanResult

type ScanResult struct {
	SchemaVersion  string `json:"schema_version"`
	ScanID         string `json:"scan_id"`
	ScannerVersion string `json:"scanner_version,omitempty"`

	Target Target `json:"target"`

	Status         ScanStatus `json:"status"`
	Verdict        Verdict    `json:"verdict"`
	VerdictReasons []string   `json:"verdict_reasons,omitempty"`

	Findings  []Finding        `json:"findings"`
	Analyzers []AnalyzerResult `json:"analyzers"`
	Coverage  Coverage         `json:"coverage"`

	Snapshot *Snapshot `json:"snapshot,omitempty"`

	StartedAt  time.Time     `json:"started_at"`
	FinishedAt time.Time     `json:"finished_at"`
	Duration   time.Duration `json:"duration_ns"`

	Warnings []string `json:"warnings,omitempty"`
}

ScanResult is the complete, serializable outcome of scanning one target

func (*ScanResult) Aggregate

func (r *ScanResult) Aggregate(blocking Severity)

Aggregate is the only place that decides a verdict. In order: no analyzer ran -> SKIPPED/UNKNOWN; a required error -> ERROR/UNKNOWN; a required incomplete result or coverage gap -> PARTIAL/UNKNOWN; every attempted analyzer failed -> SKIPPED/UNKNOWN; a blocking finding -> COMPLETED/UNSAFE; otherwise -> COMPLETED/SAFE.

func (*ScanResult) Counts

func (r *ScanResult) Counts() map[Severity]int

Counts returns the number of non-suppressed findings per severity

type ScanStatus

type ScanStatus string

ScanStatus is how the whole scan ended

const (
	StatusCompleted ScanStatus = "COMPLETED"
	StatusPartial   ScanStatus = "PARTIAL"
	StatusError     ScanStatus = "ERROR"
	StatusSkipped   ScanStatus = "SKIPPED"
)

type Severity

type Severity string

Severity is a finding's impact rating

const (
	SeverityInfo     Severity = "INFO"
	SeverityLow      Severity = "LOW"
	SeverityMedium   Severity = "MEDIUM"
	SeverityHigh     Severity = "HIGH"
	SeverityCritical Severity = "CRITICAL"
)

func ParseSeverity

func ParseSeverity(v string) (Severity, error)

ParseSeverity accepts severity names in either case

func (Severity) AtLeast

func (s Severity) AtLeast(min Severity) bool

AtLeast reports whether s is valid and at least as severe as min

func (Severity) OneStepDown

func (s Severity) OneStepDown() Severity

OneStepDown lowers s once, but never below INFO. The fixed limit prevents untrusted text from reducing its own finding below every gate.

func (Severity) Rank

func (s Severity) Rank() int

Rank returns a comparable value. Unknown severities rank below INFO so a typo cannot trigger a --fail-on gate.

func (Severity) String

func (s Severity) String() string

func (Severity) Valid

func (s Severity) Valid() bool

type Snapshot

type Snapshot struct {
	SchemaVersion string `json:"schema_version"`

	ServerName      string `json:"server_name,omitempty"`
	ServerVersion   string `json:"server_version,omitempty"`
	ServerTitle     string `json:"server_title,omitempty"`
	ProtocolVersion string `json:"protocol_version,omitempty"`
	Instructions    string `json:"instructions,omitempty"`

	Capabilities map[string]any `json:"capabilities,omitempty"`

	Tools     []ToolInfo     `json:"tools,omitempty"`
	Prompts   []PromptInfo   `json:"prompts,omitempty"`
	Resources []ResourceInfo `json:"resources,omitempty"`
	Templates []ResourceInfo `json:"resource_templates,omitempty"`

	Transport TransportInfo `json:"transport"`

	// Warnings records anything odd seen while building the snapshot, for
	// example a truncated page or a list method the server does not support
	Warnings []string `json:"warnings,omitempty"`

	// Truncated records lists the scanner stopped reading before the server
	// stopped offering. It is a count, not prose, because coverage has to
	// know how much was missed rather than infer it from a warning string.
	// A shortfall the server never revealed is recorded with Unknown set.
	Truncated []Truncation `json:"truncated,omitempty"`

	// RedirectsRefused records redirects refused by the scanner's transport, never text parsed
	// from a server error. An analyzer may therefore treat each entry as an observed fact.
	RedirectsRefused []string `json:"redirects_refused,omitempty"`
}

Snapshot is the scanner's own view of an MCP server, decoupled from the SDK types so it can be serialized, hashed, diffed and replayed from testdata

func (*Snapshot) CapabilityCount

func (s *Snapshot) CapabilityCount() int

CapabilityCount is the denominator for capability coverage

type Target

type Target struct {
	Kind TargetKind `json:"kind"`
	// Name is what shows up in reports
	Name string `json:"name"`

	// Remote
	URL       string            `json:"url,omitempty"`
	Headers   map[string]string `json:"-"`                   // never serialized: may hold bearer tokens
	Transport string            `json:"transport,omitempty"` // auto | streamable | sse

	// Stdio
	Command string            `json:"command,omitempty"`
	Args    []string          `json:"args,omitempty"` // redacted by MarshalJSON, see RedactedArgs
	Env     map[string]string `json:"-"`              // never serialized

	// Static / source / package
	Path      string `json:"path,omitempty"`
	Ecosystem string `json:"ecosystem,omitempty"` // npm | pypi | go | cargo
	Package   string `json:"package,omitempty"`
	Version   string `json:"version,omitempty"`
}

Target describes what is being scanned. One Target produces one ScanResult

func (Target) Describe

func (t Target) Describe() string

Describe returns the label used in logs and reports

func (Target) MarshalJSON

func (t Target) MarshalJSON() ([]byte, error)

MarshalJSON emits URL and Args redacted, so a plain json.Marshal/Encode of any struct embedding Target - a report, an API response - cannot leak a credential by omission. The raw values stay on the struct fields themselves for the transport that actually launches or dials the target.

func (Target) RedactedArgs

func (t Target) RedactedArgs() []string

RedactedArgs is Args with the value following any credential-shaped flag name replaced by the literal "redacted", both as a separate element ("--api-key", "value") and packed into one ("--api-key=value"). This protects stdio targets imported from client configs, where credentials are commonly passed as arguments rather than environment variables.

func (Target) RedactedURL

func (t Target) RedactedURL() string

RedactedURL replaces userinfo credentials and non-allowlisted query values with the literal "redacted" while retaining their structural names. Report writers must use this form because target URLs often come from writable client configs and are archived or committed with output.

func (Target) Validate

func (t Target) Validate() error

type TargetKind

type TargetKind string

TargetKind selects which scanner pipeline runs

const (
	// TargetRemote is an MCP server reachable over HTTP (Streamable HTTP or legacy SSE)
	TargetRemote TargetKind = "remote"
	// TargetStdio is an MCP server launched as a child process
	TargetStdio TargetKind = "stdio"
	// TargetStatic is a JSON document describing tools/prompts/resources, with no connection
	TargetStatic TargetKind = "static"
	// TargetSource is a directory of source code
	TargetSource TargetKind = "source"
	// TargetPackage is a published package coordinate (npm, PyPI, Go, Cargo)
	TargetPackage TargetKind = "package"
	// TargetConfig names an MCP client config file listing several servers. It is not a
	// scannable target because one Target must produce one ScanResult, while config expands to
	// several targets. known-configs handles that expansion and Validate refuses this kind.
	TargetConfig TargetKind = "config"
)

type TaxonomyReference

type TaxonomyReference struct {
	Scheme string `json:"scheme"` // CWE | OWASP-LLM | MITRE-ATLAS | CVE | GHSA | OSV
	ID     string `json:"id"`
	URL    string `json:"url,omitempty"`
}

TaxonomyReference links a finding to an external classification so reports can be correlated with other tooling

type ToolInfo

type ToolInfo struct {
	Name         string         `json:"name"`
	Title        string         `json:"title,omitempty"`
	Description  string         `json:"description,omitempty"`
	InputSchema  map[string]any `json:"input_schema,omitempty"`
	OutputSchema map[string]any `json:"output_schema,omitempty"`
	Annotations  map[string]any `json:"annotations,omitempty"`
	Meta         map[string]any `json:"meta,omitempty"`
}

ToolInfo mirrors an MCP tool declaration

type TransportInfo

type TransportInfo struct {
	Kind      string `json:"kind"` // stdio | streamable-http | sse | static
	Endpoint  string `json:"endpoint,omitempty"`
	SessionID string `json:"session_id,omitempty"`
	TLS       bool   `json:"tls,omitempty"`
	// Headers holds the response headers explicitly captured for analyzers, such
	// as WWW-Authenticate, not every header the server sent - it comes from
	// a server the scan does not trust, and each value is length-capped at
	// the point it is recorded
	Headers map[string]string `json:"response_headers,omitempty"`
}

TransportInfo records how the snapshot was obtained

type Triage added in v1.2.0

type Triage string

Triage is the reliance a finding supports before a person checks it

const (
	// TriageConfirmed: running the target produced the predicted effect
	TriageConfirmed Triage = "confirmed"
	// TriagePotential: static evidence for a real issue; verify before acting on it
	TriagePotential Triage = "potential"
	// TriageNeedsReview: the impact would be high, but the evidence cannot tell a real issue from
	// a scanner artefact - an attacker may or may not control the input, or a pattern matched
	// prose. A person decides.
	TriageNeedsReview Triage = "needs_review"
	// TriageContext: low impact or not reachable from MCP input; useful background, not an issue
	TriageContext Triage = "context"
)

func DefaultTriage added in v1.2.0

func DefaultTriage(f Finding) (Triage, string)

DefaultTriage is the triage for a finding whose analyzer did not set one

type Truncation

type Truncation struct {
	// Method is the list call, for example "tools/list"
	Method string `json:"method"`
	// Read is how many items were taken before stopping
	Read int `json:"read"`
	// Missed is how many are known to remain. Zero with Unknown set means
	// the server was still offering more and never said how many.
	Missed int `json:"missed,omitempty"`
	// Unknown marks a shortfall of unknown size, which is an unexplained gap
	// rather than an accounted-for skip
	Unknown bool `json:"unknown,omitempty"`
	// Reason says why the scanner stopped
	Reason string `json:"reason"`
}

Truncation is one list the scanner did not read to the end

type ValidationError

type ValidationError struct {
	What    string
	Missing []string
	Ref     string
}

ValidationError reports a contract violation by an analyzer

func (*ValidationError) Error

func (e *ValidationError) Error() string

type Verdict

type Verdict string

Verdict is the security answer. It is only meaningful together with ScanStatus

const (
	VerdictSafe    Verdict = "SAFE"
	VerdictUnsafe  Verdict = "UNSAFE"
	VerdictUnknown Verdict = "UNKNOWN"
)

Jump to

Keyboard shortcuts

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