({
id,
category,
severity,
status,
message,
evidence = [],
remediation = [],
source = "core",
targetPath = null,
why = null,
})
| 55 | } |
| 56 | |
| 57 | export function createCheck({ |
| 58 | id, |
| 59 | category, |
| 60 | severity, |
| 61 | status, |
| 62 | message, |
| 63 | evidence = [], |
| 64 | remediation = [], |
| 65 | source = "core", |
| 66 | targetPath = null, |
| 67 | why = null, |
| 68 | }) { |
| 69 | return { |
| 70 | id, |
| 71 | category, |
| 72 | severity, |
| 73 | status, |
| 74 | message, |
| 75 | evidence, |
| 76 | remediation, |
| 77 | source, |
| 78 | ...(why ? { why } : {}), |
| 79 | ...(targetPath ? { targetPath } : {}), |
| 80 | }; |
| 81 | } |
| 82 | |
| 83 | export function createMetric({ |
| 84 | id, |
no outgoing calls
no test coverage detected