(result evaluator.Result)
| 217 | } |
| 218 | |
| 219 | func 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. |
| 229 | func (o Output) addCheckResultsToViolations(violations []evaluator.Result) []evaluator.Result { |
no outgoing calls