MCPcopy Create free account
hub / github.com/conforma/cli / keepSomeMetadataSingle

Function keepSomeMetadataSingle

internal/output/output.go:219–226  ·  view source on GitHub ↗
(result evaluator.Result)

Source from the content-addressed store, hash-verified

217}
218
219func keepSomeMetadataSingle(result evaluator.Result) {
220 for key := range result.Metadata {
221 if key == "code" || key == "effective_on" || key == "term" {
222 continue
223 }
224 delete(result.Metadata, key)
225 }
226}
227
228// addCheckResultsToViolations appends the Failures from CheckResult to the violations slice.
229func (o Output) addCheckResultsToViolations(violations []evaluator.Result) []evaluator.Result {

Calls

no outgoing calls

Tested by 1