portainer/portainer

View on GitHub
.storybook/public/mockServiceWorker.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function getResponse has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function getResponse(event, client, requestId) {
  const { request } = event;

  // Clone the request because it might've been already used
  // (i.e. its body has been read and sent to the client).
Severity: Minor
Found in .storybook/public/mockServiceWorker.js - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

          return passthrough();
    Severity: Major
    Found in .storybook/public/mockServiceWorker.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return passthrough();
      Severity: Major
      Found in .storybook/public/mockServiceWorker.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status