mirror of
https://github.com/ossf/scorecard.git
synced 2024-08-15 19:30:40 +03:00
✨ Add WithValues function to findings (#3619)
* update Signed-off-by: laurentsimon <laurentsimon@google.com> * update comment Signed-off-by: laurentsimon <laurentsimon@google.com> * typo Signed-off-by: laurentsimon <laurentsimon@google.com> --------- Signed-off-by: laurentsimon <laurentsimon@google.com>
This commit is contained in:
parent
de022dacc4
commit
fa0e1c17e9
@ -221,6 +221,13 @@ func (f *Finding) WithLocation(loc *Location) *Finding {
|
||||
return f
|
||||
}
|
||||
|
||||
// WithValues sets the values to an existing finding.
|
||||
// No copy is made.
|
||||
func (f *Finding) WithValues(values map[string]int) *Finding {
|
||||
f.Values = values
|
||||
return f
|
||||
}
|
||||
|
||||
// WithPatch adds a patch to an existing finding.
|
||||
// No copy is made.
|
||||
func (f *Finding) WithPatch(patch *string) *Finding {
|
||||
|
Loading…
Reference in New Issue
Block a user