talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function sortData has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

    sortData : function(f, direction) 
    {
        direction = direction || 'ASC';
        var st = this.fields.get(f).sortType;
        var fn = function(r1, r2){
Severity: Minor
Found in app/assets/javascripts/ext_extensions/TreeGrid/TreeGrid.js - About 45 mins 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 color has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    EXTLIB.Anim.color = function(el, args, duration, easing, cb, scope) {
Severity: Minor
Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 45 mins to fix

    Function scroll has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        scroll : function(el, args, duration, easing, cb, scope){
    Severity: Minor
    Found in app/assets/javascripts/ext/adapter/yui/ext-yui-adapter-debug.js - About 45 mins to fix

      Function onClick has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

          onClick : function(e)
          {
              var target = e.getTarget(),
                  view = this.getView(),
                  row = view.findRowIndex(target),
      Severity: Minor
      Found in app/assets/javascripts/ext_extensions/TreeGrid/src/EditorGridPanel.js - About 45 mins 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 doRender has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          doRender : function(cs, rs, ds, startRow, colCount, stripe)
      Severity: Minor
      Found in app/assets/javascripts/ext_extensions/TreeGrid/TreeGrid.js - About 45 mins to fix

        Function onTreeGridSelectionChange has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            onTreeGridSelectionChange : function(sm, selection)
            {
                var record, ancestors, store = this.getStore();
                // Row selection model
                if (sm.getSelected) {
        Severity: Minor
        Found in app/assets/javascripts/ext_extensions/TreeGrid/TreeGrid.js - About 45 mins 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 onClick has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            onClick : function(e)
            {
                var target = e.getTarget(),
                    view = this.getView(),
                    row = view.findRowIndex(target),
        Severity: Minor
        Found in app/assets/javascripts/ext_extensions/TreeGrid/TreeGrid.js - About 45 mins 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 scroll has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                scroll : function(el, args, duration, easing, cb, scope){

          Function elasticIn has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  elasticIn: function (t, b, c, d, a, p) {
          Severity: Minor
          Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 45 mins to fix

            Function elasticOut has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    elasticOut: function (t, b, c, d, a, p) {
            Severity: Minor
            Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 45 mins to fix

              Function onClick has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

                  onClick : function(e)
                  {
                      var target = e.getTarget(),
                          view = this.getView(),
                          row = view.findRowIndex(target),
              Severity: Minor
              Found in app/assets/javascripts/ext_extensions/TreeGrid/src/GridPanel.js - About 45 mins 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 sortData has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

                  sortData : function(f, direction) 
                  {
                      direction = direction || 'ASC';
                      var st = this.fields.get(f).sortType;
                      var fn = function(r1, r2){
              Severity: Minor
              Found in app/assets/javascripts/ext_extensions/TreeGrid/src/AbstractTreeStore.js - About 45 mins 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 elasticBoth has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      elasticBoth: function (t, b, c, d, a, p) {
              Severity: Minor
              Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                            if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem) === false ) {
                                                if (elem.removeEventListener)
                                                    elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
                                                else if (elem.detachEvent)
                                                    elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
                Severity: Major
                Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          for ( var i = 0; ret[i]; i++ ) {
                                              // Grab the tag name being searched for
                                              var tag = m[1] == "#" && m[3] ? m[3] : m[1] != "" || m[0] == "" ? "*" : m[2];
                  
                                              // Handle IE7 being really dumb about <object>s
                  Severity: Major
                  Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 45 mins to fix

                    Function _drawAxes has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                      _drawAxes: function(svg, x, y, padding, x_ticks, y_ticks){
                    Severity: Minor
                    Found in app/assets/javascripts/ext_extensions/D3Graph.js - About 45 mins to fix

                      Function notifyDrop has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                      Open

                          notifyDrop : function(dd, e, data){
                            delete this.grid;
                            if(!this.lastPos){
                                return;
                            }      
                      Severity: Minor
                      Found in app/assets/javascripts/ext_extensions/Portal.js - About 45 mins 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 createEvent has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          createEvent : function(dd, e, data, col, c, pos){
                      Severity: Minor
                      Found in app/assets/javascripts/ext_extensions/Portal.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                    for ( handler in events[type] )
                                                        // Handle the removal of namespaced events
                                                        if ( !parts[1] || events[type][handler].type == parts[1] )
                                                            delete events[type][handler];
                        Severity: Major
                        Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if ( !merge[id] ) {
                                                  var c = 1;
                          
                                                  for ( var n = parentNode.firstChild; n; n = n.nextSibling )
                                                      if ( n.nodeType == 1 )
                          Severity: Major
                          Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 45 mins to fix
                            Severity
                            Category
                            Status
                            Source
                            Language