Skip to content

Commit 656e5c1

Browse files
committed
feat(issue): add Addenda field, which will hold lhs and rhs for G101
1 parent 9168178 commit 656e5c1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

issue/issue.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ type Issue struct {
133133
NoSec bool `json:"nosec"` // true if the issue is nosec
134134
Suppressions []SuppressionInfo `json:"suppressions"` // Suppression info of the issue
135135
Autofix string `json:"autofix,omitempty"` // Proposed auto fix the issue
136+
Addenda any `json:"addenda,omitempty"` // Violation-specific info
136137
}
137138

138139
// SuppressionInfo object is to record the kind and the justification that used
@@ -259,6 +260,7 @@ func New(fobj *token.File, node ast.Node, ruleID, desc string, severity, confide
259260
Severity: severity,
260261
Code: code,
261262
Cwe: GetCweByRule(ruleID),
263+
Addenda: nil,
262264
}
263265
}
264266

0 commit comments

Comments
 (0)