wikimedia/mediawiki-extensions-UploadWizard

View on GitHub
resources/mw.DestinationChecker.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function checkUnique has 93 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        checkUnique: function ( title ) {
            var checker = this,
                NS_FILE = mw.config.get( 'wgNamespaceIds' ).file,
                titleObj, prefix, ext;

Severity: Major
Found in resources/mw.DestinationChecker.js - About 3 hrs to fix

    Function checkUniqueProcessor has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                function checkUniqueProcessor( data ) {
                    var result, protection, pageId, ntitle, ntitleObj, img;
    
                    result = { isUnique: true };
    
    
    Severity: Major
    Found in resources/mw.DestinationChecker.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status