secureCodeBox/secureCodeBox

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

Summary

Maintainability
A
1 hr
Test Coverage
B
88%

Function transformToFindings has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function transformToFindings(ncrackrun, publicKey) {
  return ncrackrun.service.flatMap(({address, port, credentials = []}) => {
    const {addr: ipAddress} = address[0]["$"];
    const {protocol, portid, name: portName} = port[0]["$"];

Severity: Minor
Found in scanners/ncrack/parser/parser.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status