secureCodeBox/secureCodeBox

View on GitHub
scanners/semgrep/parser/parser.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function parse has 46 lines of code (exceeds 25 allowed). Consider refactoring.
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;
Severity: Minor
Found in scanners/semgrep/parser/parser.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status