remotestorage/remotestorage.js

View on GitHub
src/requests.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function _fetchRequestWithTimeout has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function _fetchRequestWithTimeout(method: string, url: string, options: RequestOptions): Promise<XMLHttpRequest> {
  const abortController = typeof AbortController === 'function' ?
    new AbortController() :
    null;
  let timeoutId;
Severity: Major
Found in src/requests.ts - About 2 hrs to fix

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

    async function _xhrRequestWithTimeout(method: string, url: string, options: RequestOptions): Promise<XMLHttpRequest> {
      return new Promise((resolve, reject) => {
    
        log('[requests XHR]', method, url);
    
    
    Severity: Minor
    Found in src/requests.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status