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

Method WithOutcome

finding/finding.go:236–244  ·  view source on GitHub ↗

WithOutcome adds an outcome to an existing finding. No copy is made.

(o Outcome)

Source from the content-addressed store, hash-verified

234// WithOutcome adds an outcome to an existing finding.
235// No copy is made.
236func (f *Finding) WithOutcome(o Outcome) *Finding {
237 f.Outcome = o
238 // only bad outcomes need remediation, clear if unneeded
239 if o != f.badOutcome {
240 f.Remediation = nil
241 }
242
243 return f
244}
245
246// WithRemediationMetadata adds remediation metadata to an existing finding.
247// No copy is made.

Callers 6

NewWithFunction · 0.80
Test_FromBytesFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80
RunFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_FromBytesFunction · 0.64