yippie-io/iUPB

View on GitHub
app/assets/javascripts/libs/jquery.expander.js

Summary

Maintainability
D
2 days
Test Coverage

Function expander has 225 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  $.fn.expander = function(options) {
    var meth = 'init';

    if (typeof options == 'string') {
      meth = options;
Severity: Major
Found in app/assets/javascripts/libs/jquery.expander.js - About 1 day to fix

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

          init: function() {
            this.each(function() {
              var i, l, tmp, newChar, summTagless, summOpens, summCloses,
                  lastCloseTag, detailText, detailTagless,
                  $thisDetails, $readMore,
    Severity: Major
    Found in app/assets/javascripts/libs/jquery.expander.js - About 5 hrs to fix

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

      /*!
       * jQuery Expander Plugin v1.4.3
       *
       * Date: Tue Jun 19 11:54:00 2012 EDT
       * Requires: jQuery v1.3+
      Severity: Minor
      Found in app/assets/javascripts/libs/jquery.expander.js - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status