scanners/semgrep/parser/parser.js
Function parse
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function parse(fileContent) {
return fileContent.results.flatMap((result) => {
// Assemble location as path to file and line range
const location =
result.path + ":" + result.start.line + "-" + result.end.line;