AndrewWalsh/at-your-service

View on GitHub
src/_not_exported/at-your-service-sw.js

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

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

  async _createPayload(request, response, beforeRequestTime, afterRequestTime) {
    const requestHeaders = {};
    for (const [key, value] of request.headers) {
      requestHeaders[key] = value;
    }
Severity: Minor
Found in src/_not_exported/at-your-service-sw.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      if (!(event.request.url.indexOf("http") === 0)) return;
    Severity: Major
    Found in src/_not_exported/at-your-service-sw.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status