MCPcopy Create free account
hub / github.com/openai/plugins / renderFindingList

Function renderFindingList

plugins/plugin-eval/src/renderers/markdown.js:87–102  ·  view source on GitHub ↗
(findings, emptyLabel)

Source from the content-addressed store, hash-verified

85}
86
87function renderFindingList(findings, emptyLabel) {
88 if (!findings || findings.length === 0) {
89 return [`- ${emptyLabel}`];
90 }
91
92 return findings.map((finding) => {
93 const parts = [`- [${finding.status}/${finding.severity}] ${finding.message}`];
94 if (finding.why) {
95 parts.push(`Why: ${finding.why}`);
96 }
97 if (finding.remediation?.length > 0) {
98 parts.push(`Fix: ${finding.remediation.join(" ")}`);
99 }
100 return parts.join(" ");
101 });
102}
103
104function renderChecks(checks) {
105 if (checks.length === 0) {

Callers 1

renderEvaluationFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected