MCPcopy
hub / github.com/ossf/scorecard / WithValue

Method WithValue

finding/finding.go:264–270  ·  view source on GitHub ↗

WithValue adds a value to f.Values. No copy is made.

(k, v string)

Source from the content-addressed store, hash-verified

262// WithValue adds a value to f.Values.
263// No copy is made.
264func (f *Finding) WithValue(k, v string) *Finding {
265 if f.Values == nil {
266 f.Values = make(map[string]string)
267 }
268 f.Values[k] = v
269 return f
270}
271
272// UnmarshalYAML is a custom unmarshalling function
273// to transform the string into an enum.

Callers 15

RunFunction · 0.95
CreateUndeclaredFindingFunction · 0.95
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
CreateFalseFindingFunction · 0.80
ReadTrueLevelFindingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected