Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySuggestedFixes ¶ added in v0.10.0
func Modify ¶ added in v0.8.0
func Modify(conf *config.Config, diag *Diagnostic)
func PrintAsConsole ¶
func PrintAsConsole(diag *Diagnostic) (ret bool)
PrintAsConsole prinst the issues to console with colors and returns false in case only warning or info isues
func PrintAsGithub ¶
func PrintAsGithub(diag *Diagnostic) (ret bool)
Types ¶
type CachedFile ¶
type Diagnostic ¶
type Diagnostic map[string]map[string]*IssuesOrError
Diagnostic is a structure to hold the json output from multichecker
JSON example: ```json
{ "<package>": { "<analyzer>": { "posn": "</path/to/file.go>:<line num>:<column num>", "message": "<message>", "suggested_fixes": [ { "message": "", "edits": [ { "filename": "</path/to/file.go>", "start": 865, "end": 865, "new": "<new text>" } ] } ] } } }
```
func ParseOutput ¶
func ParseOutput(conf *config.Config, data []byte) *Diagnostic
type IssuesOrError ¶ added in v0.9.0
func (*IssuesOrError) MarshalJSON ¶ added in v0.9.0
func (o *IssuesOrError) MarshalJSON() ([]byte, error)
func (*IssuesOrError) UnmarshalJSON ¶ added in v0.9.0
func (o *IssuesOrError) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.