Documentation
¶
Index ¶
- type MarkerSeverity
- type MarkerTag
- type StaticAnalyzeResult
- type StaticAnalyzeResults
- func (e *StaticAnalyzeResults) Get() []*StaticAnalyzeResult
- func (e *StaticAnalyzeResults) Merge(o *StaticAnalyzeResults)
- func (e *StaticAnalyzeResults) NewDeprecated(message string, v *ssaapi.Value)
- func (e *StaticAnalyzeResults) NewError(message string, v *ssaapi.Value)
- func (e *StaticAnalyzeResults) NewWarn(message string, v *ssaapi.Value)
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 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 ¶
func (e *StaticAnalyzeResults) Get() []*StaticAnalyzeResult
Get all Result
func (*StaticAnalyzeResults) Merge ¶
func (e *StaticAnalyzeResults) Merge(o *StaticAnalyzeResults)
Merge another result
func (*StaticAnalyzeResults) NewDeprecated ¶
func (e *StaticAnalyzeResults) NewDeprecated(message string, v *ssaapi.Value)
NewDeprecated in v.Range or [0:0-0:1]
Click to show internal directories.
Click to hide internal directories.