Lichess4545/Chesster

View on GitHub
src/http.ts

Summary

Maintainability
A
3 hrs
Test Coverage
F
50%

Function fetchURLIntoJSON has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function fetchURLIntoJSON(
    options: RequestOptions | string
): Promise<JSONResponse> {
    return new Promise((resolve, reject) => {
        fetchURL(options).then(
Severity: Minor
Found in src/http.ts - About 1 hr to fix

    Function fetchURL has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function fetchURL(
        optionsOrString: RequestOptions | string
    ): Promise<Response> {
        let options: RequestOptions
        if (isString(optionsOrString)) {
    Severity: Minor
    Found in src/http.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status