# Functions
CodeSnippet extracts a code snippet based on the ast reference.
GetCweByRule retrieves a cwe weakness for a given RuleID.
GetLine returns the line number of a given ast.Node.
New creates a new Issue.
# Constants
High severity or confidence.
Low severity or confidence.
Medium severity or confidence.
SnippetOffset defines the number of lines captured before the beginning and after the end of a code snippet.
# Structs
Issue is returned by a gosec rule if it discovers an issue with the scanned code.
MetaData is embedded in all gosec rules.
SuppressionInfo object is to record the kind and the justification that used to suppress violations.
# Type aliases
Score type used by severity and confidence values.