airbnb/caravel

View on GitHub
superset-frontend/webpack.proxy-config.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function toDevHTML has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function toDevHTML(originalHtml) {
  let html = originalHtml.replace(
    /(<head>\s*<title>)([\s\S]*)(<\/title>)/i,
    '$1[DEV] $2 $3',
  );
Severity: Minor
Found in superset-frontend/webpack.proxy-config.js - About 1 hr to fix

    Function processHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function processHTML(proxyResponse, response) {
      let body = Buffer.from([]);
      let originalResponse = proxyResponse;
      let uncompress;
      const responseEncoding = originalResponse.headers['content-encoding'];
    Severity: Minor
    Found in superset-frontend/webpack.proxy-config.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status