wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/resources/jquery.ui/jquery.ui.ooMenu.js

Summary

Maintainability
B
4 hrs
Test Coverage

File jquery.ui.ooMenu.js has 285 lines of code (exceeds 250 allowed). Consider refactoring.
Open

( function () {
    'use strict';

    /**
     * jQuery.ui.ooMenu provides an object-oriented menu structure. Menu items are managed using
Severity: Minor
Found in client/resources/jquery.ui/jquery.ui.ooMenu.js - About 2 hrs to fix

    Function _appendItem has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _appendItem: function ( item ) {
                var self = this;
    
                var label = this.options.manipulateLabel
                    ? this.options.manipulateLabel( item.getLabel() )
    Severity: Minor
    Found in client/resources/jquery.ui/jquery.ui.ooMenu.js - About 1 hr to fix

      Function CustomItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          var CustomItem = function ( label, visibility, action, cssClass, link ) {
      Severity: Minor
      Found in client/resources/jquery.ui/jquery.ui.ooMenu.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status