OtherDevOpsGene/zap-sonar-plugin

View on GitHub
scripts/start.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function setupCompiler has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function setupCompiler(host, port, protocol) {
  // "Compiler" is a low-level interface to Webpack.
  // It lets us listen to some events and provide our own custom messages.
  compiler = webpack(config, handleCompile);

Severity: Minor
Found in scripts/start.js - About 1 hr to fix

    Function onProxyError has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function onProxyError(proxy) {
      return function(err, req, res) {
        const host = req.headers && req.headers.host;
        console.log(
          chalk.red("Proxy error:") +
    Severity: Minor
    Found in scripts/start.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status