wikimedia/mediawiki-extensions-UploadWizard

View on GitHub
resources/mw.GroupProgressBar.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function start has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        start: function () {
            var bar = this,
                shown = false;

            this.setBeginTime();
Severity: Minor
Found in resources/mw.GroupProgressBar.js - About 1 hr to fix

    Function displayer has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                function displayer() {
                    var totalWeight = 0.0,
                        fraction = 0.0,
                        successStateCount = 0,
                        errorStateCount = 0,
    Severity: Minor
    Found in resources/mw.GroupProgressBar.js - About 1 hr to fix

      Function GroupProgressBar has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          mw.GroupProgressBar = function ( selector, uploads, successStates, errorStates, progressProperty, weightProperty ) {
      Severity: Minor
      Found in resources/mw.GroupProgressBar.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status