(type = null)
| 474 | } |
| 475 | |
| 476 | async function clearFindings(type = null) { |
| 477 | if (type) { |
| 478 | const findings = await getFindings(); |
| 479 | findings[type] = []; |
| 480 | await saveFindings(findings); |
| 481 | } else { |
| 482 | await saveFindings({ params: [], headers: [], paths: [] }); |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | function updateBadge(findings) { |
| 487 | const total = findings.params.length + findings.headers.length + findings.paths.length; |
no test coverage detected