app/js/jquery.ui.autocomplete.js

Summary

Maintainability
D
2 days
Test Coverage

Function _create has 197 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _create: function() {
        // Some browsers only repeat keydown events, not keypress events,
        // so we use the suppressKeyPress flag to determine if we've already
        // handled the keydown event. #7269
        // Unfortunately the code for & in keypress is the same as the up arrow,
Severity: Major
Found in app/js/jquery.ui.autocomplete.js - About 7 hrs to fix

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

    /*!
     * jQuery UI Autocomplete 1.10.4
     * http://jqueryui.com
     *
     * Copyright 2014 jQuery Foundation and other contributors
    Severity: Minor
    Found in app/js/jquery.ui.autocomplete.js - About 7 hrs to fix

      Function keydown has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  keydown: function( event ) {
                      if ( this.element.prop( "readOnly" ) ) {
                          suppressKeyPress = true;
                          suppressInput = true;
                          suppressKeyPressRepeat = true;
      Severity: Major
      Found in app/js/jquery.ui.autocomplete.js - About 2 hrs to fix

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

            _initSource: function() {
                var array, url,
                    that = this;
                if ( $.isArray(this.options.source) ) {
                    array = this.options.source;
        Severity: Minor
        Found in app/js/jquery.ui.autocomplete.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status