talho/openphin

View on GitHub

Showing 1,713 of 3,486 total issues

Function swfobject has a Cognitive Complexity of 428 (exceeds 5 allowed). Consider refactoring.
Open

var swfobject = function() {
    
    var UNDEF = "undefined",
        OBJECT = "object",
        SHOCKWAVE_FLASH = "Shockwave Flash",
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/chart/swfobject.js - About 1 wk 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

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

/*!
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
Severity: Major
Found in app/assets/javascripts/jquery.js - About 1 wk to fix

    Function DomQuery has a Cognitive Complexity of 411 (exceeds 5 allowed). Consider refactoring.
    Open

    Ext.DomQuery = function(){
        var cache = {}, 
            simpleCache = {}, 
            valueCache = {},
            nonSpace = /\S/,
    Severity: Minor
    Found in app/assets/javascripts/ext/src/ext-core/src/core/DomQuery.js - About 1 wk 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 DragDropMgr has a Cognitive Complexity of 372 (exceeds 5 allowed). Consider refactoring.
    Open

    Ext.dd.DragDropMgr = function() {
    
        var Event = Ext.EventManager;
    
        return {
    Severity: Minor
    Found in app/assets/javascripts/ext/src/dd/DDCore.js - About 1 wk 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

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

    (function(){
    /*
     * jQuery 1.2.2 - New Wave Javascript
     *
     * Copyright (c) 2007 John Resig (jquery.com)
    Severity: Major
    Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 6 days to fix

      Function EventManager has a Cognitive Complexity of 246 (exceeds 5 allowed). Consider refactoring.
      Open

      Ext.EventManager = function(){
          var docReadyEvent,
              docReadyProcId,
              docReadyState = false,
              DETECT_NATIVE = Ext.isGecko || Ext.isWebKit || Ext.isSafari,
      Severity: Minor
      Found in app/assets/javascripts/ext/src/ext-core/src/core/EventManager.js - About 5 days 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

      File ext-base-debug.js has 1832 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Ext JS Library 3.3.0
       * Copyright(c) 2006-2010 Ext JS, Inc.
       * licensing@extjs.com
       * http://www.extjs.com/license
      Severity: Major
      Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 5 days to fix

        File GridView.js has 1504 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * Ext JS Library 3.3.0
         * Copyright(c) 2006-2010 Ext JS, Inc.
         * licensing@extjs.com
         * http://www.extjs.com/license
        Severity: Major
        Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 4 days to fix

          File TreeGrid.js has 1408 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          if (Ext.version == '3.0') {
              Ext.override(Ext.grid.GridView, {
                  ensureVisible : function(row, col, hscroll) {
                  
                      var resolved = this.resolveCell(row, col, hscroll);
          Severity: Major
          Found in app/assets/javascripts/ext_extensions/TreeGrid/TreeGrid.js - About 3 days to fix

            Function Event has a Cognitive Complexity of 173 (exceeds 5 allowed). Consider refactoring.
            Open

            Ext.lib.Event = function() {
                var loadComplete = false,
                    unloadListeners = {},
                    retryCount = 0,
                    onAvailStack = [],
            Severity: Minor
            Found in app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-event.js - About 3 days 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 swfobject has 663 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var swfobject = function() {
                
                var UNDEF = "undefined",
                    OBJECT = "object",
                    SHOCKWAVE_FLASH = "Shockwave Flash",
            Severity: Major
            Found in app/assets/javascripts/ext/src/widgets/chart/swfobject.js - About 3 days to fix

              Function DomQuery has 650 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Ext.DomQuery = function(){
                  var cache = {}, 
                      simpleCache = {}, 
                      valueCache = {},
                      nonSpace = /\S/,
              Severity: Major
              Found in app/assets/javascripts/ext/src/ext-core/src/core/DomQuery.js - About 3 days to fix

                File DDCore.js has 1122 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*!
                 * Ext JS Library 3.3.0
                 * Copyright(c) 2006-2010 Ext JS, Inc.
                 * licensing@extjs.com
                 * http://www.extjs.com/license
                Severity: Major
                Found in app/assets/javascripts/ext/src/dd/DDCore.js - About 2 days to fix

                  Function DomHelper has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring.
                  Open

                  Ext.DomHelper = function(){
                      var tempTableEl = null,
                          emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,
                          tableRe = /^table|tbody|tr|td$/i,
                          confRe = /tag|children|cn|html$/i,
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/ext-core/src/core/DomHelper.js - About 2 days 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 DragDropMgr has 520 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Ext.dd.DragDropMgr = function() {
                  
                      var Event = Ext.EventManager;
                  
                      return {
                  Severity: Major
                  Found in app/assets/javascripts/ext/src/dd/DDCore.js - About 2 days to fix

                    File ext-prototype-adapter-debug.js has 1000 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*!
                     * Ext JS Library 3.3.0
                     * Copyright(c) 2006-2010 Ext JS, Inc.
                     * licensing@extjs.com
                     * http://www.extjs.com/license

                      Function Ajax has a Cognitive Complexity of 123 (exceeds 5 allowed). Consider refactoring.
                      Open

                      Ext.lib.Ajax = function() {
                          var activeX = ['Msxml2.XMLHTTP.6.0',
                                         'Msxml2.XMLHTTP.3.0',
                                         'Msxml2.XMLHTTP'],
                              CONTENTTYPE = 'Content-Type';
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-ajax.js - About 2 days 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

                      File ext-jquery-adapter-debug.js has 969 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*!
                       * Ext JS Library 3.3.0
                       * Copyright(c) 2006-2010 Ext JS, Inc.
                       * licensing@extjs.com
                       * http://www.extjs.com/license
                      Severity: Major
                      Found in app/assets/javascripts/ext/adapter/jquery/ext-jquery-adapter-debug.js - About 2 days to fix

                        GridView has 111 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        Ext.grid.GridView = Ext.extend(Ext.util.Observable, {
                            /**
                             * Override this function to apply custom CSS classes to rows during rendering.  You can also supply custom
                             * parameters to the row template for the current row to customize how it is rendered using the <b>rowParams</b>
                             * parameter.  This function should return the CSS class name (or empty string '' for none) that will be added
                        Severity: Major
                        Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 2 days to fix

                          File Store.js has 872 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*!
                           * Ext JS Library 3.3.0
                           * Copyright(c) 2006-2010 Ext JS, Inc.
                           * licensing@extjs.com
                           * http://www.extjs.com/license
                          Severity: Major
                          Found in app/assets/javascripts/ext/src/data/Store.js - About 2 days to fix
                            Severity
                            Category
                            Status
                            Source
                            Language