Debian Codegraph @

sarif/suppression.go

raw symbols SCIP
1 package sarif
2
3 // Suppression ...
4 type Suppression struct {
5 PropertyBag
6 Kind string `json:"kind,omitempty"`
7 Status *string `json:"status,omitempty"`
8 Location *Location `json:"location,omitempty"`
9 Guid *string `json:"guid,omitempty"`
10 Justification *string `json:"justification,omitempty"`
11 }
12
13 // NewSuppression ...
14 func NewSuppression(kind string) *Suppression {
15 return &Suppression{
16 Kind: kind,
17 }
18 }
19
20 // WithStatus ...
21 func (s *Suppression) WithStatus(status string) *Suppression {
22 s.Status = &status
23 return s
24 }
25
26 // WithLocation ...
27 func (s *Suppression) WithLocation(location *Location) *Suppression {
28 s.Location = location
29 return s
30 }
31
32 // WithGuid ...
33 func (s *Suppression) WithGuid(guid string) *Suppression {
34 s.Guid = &guid
35 return s
36 }
37
38 // WithJustifcation ...
39 func (s *Suppression) WithJustifcation(justification string) *Suppression {
40 s.Justification = &justification
41 return s
42 }