opensheetmusicdisplay/opensheetmusicdisplay

View on GitHub
src/OpenSheetMusicDisplay/AJAX.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function ajax has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static ajax(url: string, timeout: number = 9000): Promise<string> {
        let xhttp: XMLHttpRequest;
        const mimeType: string = url.indexOf(".mxl") > -1 ? "text/plain; charset=x-user-defined" : "application/xml";
        if (XMLHttpRequest) {
            xhttp = new XMLHttpRequest();
Severity: Minor
Found in src/OpenSheetMusicDisplay/AJAX.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status