types

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extra

type Extra struct {
	Message  string   `json:"message"`
	Metavars Metavars `json:"metavars"`
	Metadata Metadata `json:"metadata"`
	Severity string   `json:"severity"`
	Lines    string   `json:"lines"`
}

Extra contains extra info needed for semgrep issue.

type Metadata

type Metadata struct{}

Metadata currently is empty, however, could represent semgrep issue metadata going forward.

type Metavars

type Metavars struct{}

Metavars currently is empty but could represent more metavariables for semgrep.

type Position

type Position struct {
	Col  int `json:"col"`
	Line int `json:"line"`
}

Position represents where in the file the finding is located.

type SemgrepIssue

type SemgrepIssue struct {
	CheckID string   `json:"check_id"`
	Path    string   `json:"path"`
	Start   Position `json:"start"`
	End     Position `json:"end"`
	Extra   Extra    `json:"extra"`
}

SemgrepIssue represents a semgrep issue.

type SemgrepResults

type SemgrepResults struct {
	Results []SemgrepIssue `'json:"results"`
}

SemgrepResults represents a series of semgrep issues.

Jump to

Keyboard shortcuts

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