Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AffectedFile ¶
type AffectedFile struct { Description string `json:"description"` FileRefs []FileRef `json:"files"` }
AffectedFile is a set of incidents found in a file
func (AffectedFile) AsIncidentsAndTags ¶
func (a AffectedFile) AsIncidentsAndTags() ([]konveyor.Incident, []string)
type File ¶
type File struct { ID string `json:"id"` FullPath string `json:"fullPath"` PrettyPath string `json:"prettyPath"` PrettyFileName string `json:"prettyFileName"` SourceType string `json:"sourceType"` StoryPoints int `json:"storyPoints"` Hints []Hint `json:"hints"` Tags []FileTag `json:"tags"` ClassificationsAndHintsTags []interface{} `json:"classificationsAndHintsTags"` Content FileContent `json:"fileContent"` }
File defines a file. it has content of the file and hints & tags to display when its opened in the UI
func ParseFilesJson ¶
ParseFilesJson parses ./api/files.json at basePath
type FileContent ¶
FileContent has the actual file content in it
func ParseFileContentJson ¶
func ParseFileContentJson(path string) (FileContent, error)
ParseFileContentJson parses json file at path as FileContent
type FileRef ¶
type FileRef struct { FileID string `json:"fileId"` FileName string `json:"fileName"` Occurrences int `json:"occurrences"` File File `json:"file"` }
FileRef is a reference to a file model
func (FileRef) AsIncidents ¶
type FileTag ¶
type FileTag struct { Name string `json:"name"` Version string `json:"version"` Level string `json:"level"` }
FileTag is a tag displayed for a file
type Hint ¶
type Hint struct { Line int `json:"line"` Title string `json:"title"` RuleID string `json:"ruleId"` Content string `json:"content"` Links []Link `json:"links"` }
Hint is closely equivalent to a message in violations
type Issue ¶
type Issue struct { ID string `json:"id"` Name string `json:"name"` RuleID string `json:"ruleId"` Category string `json:"category"` Effort Effort `json:"effort"` TotalIncidents int `json:"totalIncidents"` TotalStoryPoints int `json:"totalStoryPoints"` Links []interface{} `json:"links"` AffectedFiles []AffectedFile `json:"affectedFiles"` SourceTechnologies []string `json:"sourceTechnologies"` TargetTechnologies []string `json:"targetTechnologies"` }
Issue is what we see in each row in windup output
type Issues ¶
Issues is a map of RuleID -> Issue
func ParseIssuesJson ¶
ParseIssuesJson parses ./api/issues.json at basePath
type Result ¶
type Result struct { P []output W []output F []output }
func CompareIncidents ¶
func CompareRuleset ¶
func CompareTags ¶
func CompareViolation ¶
Click to show internal directories.
Click to hide internal directories.