railsfrance/railsfrance.org

View on GitHub
app/assets/javascripts/lib/autocomplete-rails.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function init has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    init: function(e) {
      e.delimiter = ", ";
      function split( val ) {
        return val.split( e.delimiter );
      }
Severity: Major
Found in app/assets/javascripts/lib/autocomplete-rails.js - About 2 hrs to fix

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

            select: function( event, ui ) {
              var terms = split( this.value );
              // remove the current input
              terms.pop();
              // add the selected item
    Severity: Minor
    Found in app/assets/javascripts/lib/autocomplete-rails.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status