NewIssue creates a new issue builder
(id string, category IssueCategory, severity IssueSeverity)
| 123 | |
| 124 | // NewIssue creates a new issue builder |
| 125 | func NewIssue(id string, category IssueCategory, severity IssueSeverity) *IssueBuilder { |
| 126 | return &IssueBuilder{ |
| 127 | issue: AnalysisIssue{ |
| 128 | ID: id, |
| 129 | Category: category, |
| 130 | Severity: severity, |
| 131 | }, |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | // WithTitle sets the issue title |
| 136 | func (b *IssueBuilder) WithTitle(title string) *IssueBuilder { |
no outgoing calls