wikimedia/mediawiki-extensions-UploadWizard

View on GitHub
resources/mw.UploadWizard.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function getApi has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getApi: function ( options ) {
            var api = new mw.Api( options );

            api.ajax = function ( parameters, ajaxOptions ) {
                var original, override;
Severity: Minor
Found in resources/mw.UploadWizard.js - About 1 hr to fix

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

                api.ajax = function ( parameters, ajaxOptions ) {
                    var original, override;
    
                    Object.assign( parameters, {
                        errorformat: 'html',
    Severity: Minor
    Found in resources/mw.UploadWizard.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status