canax/request

View on GitHub
doc/api/js/jquery.dotdotdot-1.5.9.js

Summary

Maintainability
F
3 days
Test Coverage

File jquery.dotdotdot-1.5.9.js has 520 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*    
 *    jQuery dotdotdot 1.5.9
 *    
 *    Copyright (c) 2013 Fred Heusschen
 *    www.frebsite.nl
Severity: Major
Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 1 day to fix

    Function dotdotdot has 203 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.fn.dotdotdot = function( o )
        {
            if ( this.length == 0 )
            {
                if ( !o || o.debug !== false )
    Severity: Major
    Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 1 day to fix

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

              $dot.bind_events = function()
              {
                  $dot.bind(
                      'update.dot',
                      function( e, c )
      Severity: Major
      Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 3 hrs to fix

        Function ellipsisElement has 65 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function ellipsisElement( $e, $d, $i, o, after )
            {
                var isTruncated    = false,
                    e = $e[ 0 ];
        
        
        Severity: Major
        Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 2 hrs to fix

          Function watch has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  $dot.watch = function()
                  {
                      $dot.unwatch();
                      if ( opts.watch == 'window' )
                      {
          Severity: Minor
          Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 1 hr to fix

            Function ellipsis has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function ellipsis( $elem, $d, $i, o, after )
                {
                    var $elements     = $elem.contents(),
                        isTruncated    = false;
            
            
            Severity: Minor
            Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 1 hr to fix

              Function children has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function children( $elem, o, after )
                  {
                      var $elements     = $elem.children(),
                          isTruncated    = false;
              
              
              Severity: Minor
              Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 1 hr to fix

                Function ellipsis has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    function ellipsis( $elem, $d, $i, o, after )
                Severity: Minor
                Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 35 mins to fix

                  Function ellipsisElement has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function ellipsisElement( $e, $d, $i, o, after )
                  Severity: Minor
                  Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 35 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return false;
                    Severity: Major
                    Found in doc/api/js/jquery.dotdotdot-1.5.9.js - About 30 mins to fix

                      There are no issues that match your filters.

                      Category
                      Status