Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct { Column int `json:"col"` Row int `json:"row"` Offset int `json:"offset,omitempty"` File string `json:"file"` Text *string `json:"text,omitempty"` }
Location provides information on the location of a violation.
type RelatedResource ¶
type RelatedResource struct { Description string `json:"description"` Reference string `json:"ref"` }
RelatedResource provides documentation on a violation.
type Report ¶
Report aggregate of Violation as returned by a linter run.
func (Report) ViolationsFileCount ¶
ViolationsFileCount returns the number of files containing violations.
type Violation ¶
type Violation struct { Title string `json:"title"` Description string `json:"description"` Category string `json:"category"` Level string `json:"level"` RelatedResources []RelatedResource `json:"related_resources,omitempty"` Location Location `json:"location,omitempty"` }
Violation describes any violation found by Regal.
Click to show internal directories.
Click to hide internal directories.