finding

package
v0.0.0-...-961fe65 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Match      string
	Location   Location
	Rule       string
	Confidence float64
	Severity   string
}

Finding contains the matched line, the location of the match, and the confidence of the match

func (*Finding) ConvertSeverityToGitLab

func (finding *Finding) ConvertSeverityToGitLab() gli.SeverityLevel

ConvertSeverityToGitLab converts severity to GitLab-compatible int.

func (*Finding) IsEmpty

func (finding *Finding) IsEmpty() bool

IsEmpty returns true if all fields are default, false otherwise

func (Finding) String

func (finding Finding) String() string

Stringer for Finding struct

type Location

type Location struct {
	Path string
	Line int
}

Location wraps the path/line data for a finding

func (Location) String

func (location Location) String() string

Stringer for Location struct

Jump to

Keyboard shortcuts

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