(findings, finding)
| 165 | } |
| 166 | |
| 167 | function 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 | |
| 179 | function scanLineRules(filePath, content, findings) { |
| 180 | const lines = content.split(/\r?\n/); |
no outgoing calls
no test coverage detected