MCPcopy Create free account
hub / github.com/github/awesome-copilot / addFinding

Function addFinding

eng/pr-risk-scan.mjs:167–177  ·  view source on GitHub ↗
(findings, finding)

Source from the content-addressed store, hash-verified

165}
166
167function addFinding(findings, finding) {
168 findings.push({
169 rule_id: finding.rule_id,
170 severity: finding.severity,
171 file: finding.file,
172 line: finding.line,
173 match: finding.match.slice(0, 180),
174 reason: finding.reason,
175 suggested_fix: finding.suggested_fix,
176 });
177}
178
179function scanLineRules(filePath, content, findings) {
180 const lines = content.split(/\r?\n/);

Callers 2

scanLineRulesFunction · 0.85
scanSkillScriptPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected