list

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: BSD-2-Clause Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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