wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
C
1 day
Test Coverage

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

( function () {
    'use strict';

    require( './jquery.ui.ooMenu.js' );

Severity: Minor
Found in client/resources/jquery.ui/jquery.ui.suggester.js - About 4 hrs to fix

    Function _attachInputEventHandlers has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _attachInputEventHandlers: function () {
                var self = this,
                    suppressKeyPress = false;
    
                this.element
    Severity: Major
    Found in client/resources/jquery.ui/jquery.ui.suggester.js - About 2 hrs to fix

      Function search has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              search: function () {
                  var self = this,
                      deferred = $.Deferred();
      
                  this._clearTimeout();
      Severity: Minor
      Found in client/resources/jquery.ui/jquery.ui.suggester.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status