siad007/versioncontrol_hg

View on GitHub

Showing 170 of 256 total issues

File jquery-1.7.1.min.js has 6373 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Downloaded from http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js, 2012-02-04 23:26
 */

/*!
Severity: Major
Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 wks to fix

    Function jQuery has 592 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var jQuery = (function() {
    
    // Define a local copy of jQuery
    var jQuery = function( selector, context ) {
            // The jQuery object is actually just the init constructor 'enhanced'
    Severity: Major
    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 2 days to fix

      File bootstrap.js has 1060 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* ===================================================
       * bootstrap-transition.js v2.0.0
       * http://twitter.github.com/bootstrap/javascript.html#transitions
       * ===================================================
       * Copyright 2012 Twitter, Inc.
      Severity: Major
      Found in docs/api/phpdoc/js/bootstrap.js - About 2 days to fix

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

        /*
         * iviewer Widget for jQuery UI
         * https://github.com/can3p/iviewer
         *
         * Copyright (c) 2009 - 2012 Dmitry Petrov
        Severity: Major
        Found in docs/api/phpdoc/js/jquery.iviewer.js - About 1 day to fix

          Function ajax has 242 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              ajax: function( url, options ) {
          
                  // If url is an object, simulate pre-1.5 signature
                  if ( typeof url === "object" ) {
                      options = url;
          Severity: Major
          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 1 day to fix

            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 docs/api/phpdoc/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 docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 1 day to fix

                Function support has 159 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                jQuery.support = (function() {
                
                    var support,
                        all,
                        a,
                Severity: Major
                Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 6 hrs to fix

                  Function splitter has 159 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $.fn.splitter = function(args) {
                          args = args || {};
                          return this.each(function() {
                              var zombie;      // left-behind splitbar for outline resizes
                              function startSplitMouse(evt) {
                  Severity: Major
                  Found in docs/api/phpdoc/js/jquery.splitter.js - About 6 hrs to fix

                    Function Callbacks has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.Callbacks = function( flags ) {
                    
                        // Convert flags from String-formatted to Object-formatted
                        // (we check in cache first)
                        flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
                    Severity: Major
                    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 5 hrs to fix

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

                      /*
                       * jQuery PanZoom Plugin
                       * Pan and zoom an image within a parent div.
                       *
                       * version: 0.9.0
                      Severity: Minor
                      Found in docs/api/phpdoc/js/jquery.panzoom.js - About 5 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if ( event.pageX == null && original.clientX != null ) {
                                        eventDoc = event.target.ownerDocument || document;
                                        doc = eventDoc.documentElement;
                                        body = eventDoc.body;
                        
                        
                        Severity: Critical
                        Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 5 hrs to fix

                          Function Sizzle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var Sizzle = function( selector, context, results, seed ) {
                              results = results || [];
                              context = context || document;
                          
                              var origContext = context;
                          Severity: Major
                          Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 4 hrs to fix

                            Function cookie has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
                            Open

                            jQuery.cookie = function(name, value, options)
                            {
                              if (typeof value != 'undefined')
                              { // name and value given, set cookie
                                options = options || {};
                            Severity: Minor
                            Found in docs/api/phpdoc/js/jquery.cookie.js - About 4 hrs to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function treeview has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    treeview: function(settings) {
                                        
                                        settings = $.extend({
                                            cookieId: "treeview"
                                        }, settings);
                            Severity: Major
                            Found in docs/api/phpdoc/js/jquery.treeview.js - About 4 hrs 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 docs/api/phpdoc/js/jquery.dotdotdot-1.5.9.js - About 3 hrs to fix

                                Function trigger has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    trigger: function( event, data, elem, onlyHandlers ) {
                                        // Don't do events on text and comment nodes
                                        if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                                            return;
                                        }
                                Severity: Major
                                Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix

                                  Function send has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                  send: function( headers, complete ) {
                                  
                                                      // Get a new xhr
                                                      var xhr = s.xhr(),
                                                          handle,
                                  Severity: Major
                                  Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix

                                    Function clean has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        clean: function( elems, context, fragment, scripts ) {
                                            var checkScriptType;
                                    
                                            context = context || document;
                                    
                                    
                                    Severity: Major
                                    Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix

                                      Function animate has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          animate: function( prop, speed, easing, callback ) {
                                              var optall = jQuery.speed( speed, easing, callback );
                                      
                                              if ( jQuery.isEmptyObject( prop ) ) {
                                                  return this.each( optall.complete, [ false ] );
                                      Severity: Major
                                      Found in docs/api/phpdoc/js/jquery-1.7.1.min.js - About 3 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language