findings

package
v0.0.0-...-6c6fd2d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxLineChar defines the maximum number of characters in line content
	MaxLineChar = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	ID              string
	FilePath        string
	Action          string
	Description     string
	Comment         string
	RepositoryOwner string
	RepositoryName  string
	CommitHash      string
	CommitMessage   string
	CommitAuthor    string
	FileURL         string
	Line            uint64
	LineContent     string
	CommitURL       string
	RepositoryURL   string
	IsTestContext   bool
}

Finding holds the info for scan finding

func (*Finding) GenerateHashID

func (f *Finding) GenerateHashID() (hash string, err error)

GenerateHashID generates an unique hash

func (*Finding) TruncateLineContent

func (f *Finding) TruncateLineContent(maxLen int)

TruncateLineContent truncates line content

Jump to

Keyboard shortcuts

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