list

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_ISSUE_LIMIT = 100

Variables

This section is empty.

Functions

func NewCmdIssuesList

func NewCmdIssuesList() *cobra.Command

Types

type ExportData added in v0.3.5

type ExportData struct {
	Occurences []IssueJSON `json:"occurences"`
	Summary    Summary     `json:"summary"`
}

type IssueJSON added in v0.3.5

type IssueJSON struct {
	Analyzer       string       `json:"analyzer"`
	IssueCode      string       `json:"issue_code"`
	IssueTitle     string       `json:"issue_title"`
	OccurenceTitle string       `json:"occurence_title"`
	IssueCategory  string       `json:"issue_category"`
	Location       LocationJSON `json:"location"`
}

type IssuesListOptions

type IssuesListOptions struct {
	FileArg           []string
	RepoArg           string
	AnalyzerArg       []string
	LimitArg          int
	OutputFilenameArg string
	JSONArg           bool
	CSVArg            bool
	SARIFArg          bool
	SelectedRemote    *utils.RemoteData
	// contains filtered or unexported fields
}

func (*IssuesListOptions) Run

func (opts *IssuesListOptions) Run() (err error)

Execute the command

type LineColumn added in v0.3.5

type LineColumn struct {
	Line   int `json:"line"`
	Column int `json:"column"`
}

type LocationJSON added in v0.3.5

type LocationJSON struct {
	Path     string       `json:"path"`     // The filepath where the issue is reported
	Position PositionJSON `json:"position"` // The position info where the issue is raised
}

type PositionJSON added in v0.3.5

type PositionJSON struct {
	Begin LineColumn `json:"begin"` // The line where the code covered under the issue starts
	End   LineColumn `json:"end"`   // The line where the code covered under the issue starts
}

type Summary added in v0.3.5

type Summary struct {
	TotalOccurences int `json:"total_occurences"`
	UniqueIssues    int `json:"unique_issues"`
}

Jump to

Keyboard shortcuts

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