Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitCode ¶
func ExitCode(ds []Diagnostic) int
func Print ¶
func Print(w io.Writer, ds []Diagnostic)
Types ¶
type Diagnostic ¶
type Diagnostic struct {
Rule string `json:"rule"`
Action Action `json:"action"`
File string `json:"file"`
Line int `json:"line"`
Message string `json:"message"`
Suggestion string `json:"suggestion,omitempty"`
SubjectType string `json:"subject_type,omitempty"`
CommandPath string `json:"command_path,omitempty"`
FlagName string `json:"flag_name,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.