severity

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package severity holds the one finding rank awf reports. It owns no other concern: internal/audit and internal/topic both consume it and import each other in neither direction, so housing the rank in either would make an unrelated sibling depend on it purely to borrow a type (ADR-0183 item 4).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rank

type Rank int

Rank is how bad a produced finding is. There are exactly two, and Error is the zero value so an accidentally-defaulted finding is reported rather than silently downgraded. There is deliberately no suppressing value: a caller that does not want a finding class does not request it (ADR-0183 item 2).

const (
	// Error makes a consuming command exit nonzero.
	Error Rank = iota
	// Warn reports the finding without changing the exit code.
	Warn
)

func (Rank) String

func (r Rank) String() string

String renders the rank exactly as it is spelled everywhere awf reports it.

Jump to

Keyboard shortcuts

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