result

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarkerSeverity

type MarkerSeverity string
const (
	Error MarkerSeverity = "Error"
	Warn  MarkerSeverity = "Warning"
	Info  MarkerSeverity = "Info"
	Hint  MarkerSeverity = "Hint"
)

type MarkerTag

type MarkerTag string
const (
	None        MarkerTag = ""
	Deprecated  MarkerTag = "Deprecated"
	Unnecessary MarkerTag = "Unnecessary"
)

type StaticAnalyzeResult

type StaticAnalyzeResult struct {
	Message         string         `json:"message"`
	Severity        MarkerSeverity `json:"severity"`
	StartLineNumber int64          `json:"startLineNumber"`
	StartColumn     int64          `json:"startColumn"`
	EndLineNumber   int64          `json:"endLineNumber"`
	EndColumn       int64          `json:"endColumn"`
	Tag             MarkerTag      `json:"tag"`
	From            string         `json: "from"`
}

func New

func New(tag MarkerTag, severity MarkerSeverity, message string, v *ssaapi.Value) *StaticAnalyzeResult

New Result Create Result from ssaapi.Value.Range, if v is nil, then create a result in file [0:0-0:1]

func (*StaticAnalyzeResult) String

func (e *StaticAnalyzeResult) String() string

type StaticAnalyzeResults

type StaticAnalyzeResults struct {
	// contains filtered or unexported fields
}

func NewStaticAnalyzeResults

func NewStaticAnalyzeResults(strs ...string) *StaticAnalyzeResults

func (*StaticAnalyzeResults) Get

Get all Result

func (*StaticAnalyzeResults) Merge

Merge another result

func (*StaticAnalyzeResults) NewDeprecated

func (e *StaticAnalyzeResults) NewDeprecated(message string, v *ssaapi.Value)

NewDeprecated in v.Range or [0:0-0:1]

func (*StaticAnalyzeResults) NewError

func (e *StaticAnalyzeResults) NewError(message string, v *ssaapi.Value)

NewError in v.Range or [0:0-0:1]

func (*StaticAnalyzeResults) NewWarn

func (e *StaticAnalyzeResults) NewWarn(message string, v *ssaapi.Value)

NewWarn in v.Range or [0:0-0:1]

Jump to

Keyboard shortcuts

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