fairplaysk/datacamp

View on GitHub
app/assets/javascripts/jquery.asmselect.js

Summary

Maintainability
D
1 day
Test Coverage

Function asmSelect has 247 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.asmSelect = function(customOptions) {

        var options = {

            listType: 'ol',                        // Ordered list 'ol', or unordered list 'ul'
Severity: Major
Found in app/assets/javascripts/jquery.asmselect.js - About 1 day to fix

    File jquery.asmselect.js has 251 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * Alternate Select Multiple (asmSelect) 1.0.4a beta - jQuery Plugin
     * http://www.ryancramer.com/projects/asmselect/
     * 
     * Copyright (c) 2009 by Ryan Cramer - http://www.ryancramer.com
    Severity: Minor
    Found in app/assets/javascripts/jquery.asmselect.js - About 2 hrs to fix

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

                  function addListItem(optionId) {
      
                      // add a new item to the html list
      
                      var $O = $('#' + optionId); 
      Severity: Minor
      Found in app/assets/javascripts/jquery.asmselect.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status