LeaVerou/awesomplete

View on GitHub

Showing 3 of 25 total issues

File awesomplete.js has 406 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Simple, lightweight, usable local autocomplete library for modern browsers
 * Because there weren’t enough autocomplete scripts in the world? Because I’m completely insane and have NIH syndrome? Probably both. :P
 * @author Lea Verou http://leaverou.github.io/awesomplete
 * MIT license
Severity: Minor
Found in awesomplete.js - About 5 hrs to fix

    Function _ has 97 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var _ = function (input, o) {
        var me = this;
    
        // Keep track of number of instances for unique IDs
        _.count = (_.count || 0) + 1;
    Severity: Major
    Found in awesomplete.js - About 3 hrs to fix

      Function evaluate has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          evaluate: function() {
              var me = this;
              var value = this.input.value;
      
              if (value.length >= this.minChars && this._list && this._list.length > 0) {
      Severity: Minor
      Found in awesomplete.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language