Documentation ¶
Index ¶
Constants ¶
View Source
const ( PENDING_ISSUE = "pending" PROCESSED_ISSUE = "processed" )
Variables ¶
This section is empty.
Functions ¶
func PrintIssueDetails ¶ added in v0.8.5
Types ¶
type Issue ¶
type IssueManager ¶
type IssueManager interface { GetIssues() []Issue Scan(src []byte, path string) error Walk(root string, ignore []regexp.Regexp) (int, error) }
func NewIssueManager ¶
func NewIssueManager(issueType string, annotation string) (IssueManager, error)
NewIssueManager will return either a PendingIssue struct or ProcessedIssue struct that satisfies the methods defined in the IssueManager interface. The methods in said interface are used to report new issues an SCM or locate issues that have been reported to an SCM. Each struct will implement methods for walking the project directory and parsing source code files. The main difference is that pending issues will have an annotation with no id, since they haven't been pushed to an scm yet, and processed issues will have their original annotation plus an id so they can be located and removed from the source code file at a later time.
type PendingIssue ¶
func (*PendingIssue) GetIssues ¶
func (pi *PendingIssue) GetIssues() []Issue
type ProcessedIssue ¶
func (*ProcessedIssue) GetIssues ¶
func (pi *ProcessedIssue) GetIssues() []Issue
Click to show internal directories.
Click to hide internal directories.