talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Avoid deeply nested control flow statements.
Open

                    if ( !isXML ) {
                        elem.sizcache = doneName;
                        elem.sizset = i;
                    }
Severity: Major
Found in app/assets/javascripts/jquery.js - About 45 mins to fix

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

                        renderer: function(value, metaData, record, rowIndex, colIndex, store) {
    Severity: Minor
    Found in app/assets/javascripts/audience/AudiencePanel.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                      }else if(pt.y - r.top <= c.vthresh){
                          if(proc.el != el){
                              startProc(el, "up");
                          }
                          return;
      Severity: Major
      Found in app/assets/javascripts/ext/src/dd/ScrollManager.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (this.isOverTarget(pt, oDD, this.mode)) {
                                    // look for drop interactions
                                    if (isDrop) {
                                        dropEvts.push( oDD );
                                    // look for drag enter and drag over interactions
        Severity: Major
        Found in app/assets/javascripts/ext/src/dd/DDCore.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (!winner ||
                                      winner.overlap.getArea() < dd.overlap.getArea()) {
                                      winner = dd;
                                  }
          Severity: Major
          Found in app/assets/javascripts/ext/src/dd/DDCore.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (loc) {
                                        this.locationCache[oDD.id] = loc;
                                    } else {
                                        delete this.locationCache[oDD.id];
                                        // this will unregister the drag and drop object if
            Severity: Major
            Found in app/assets/javascripts/ext/src/dd/DDCore.js - About 45 mins to fix

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

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

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

                    doSend : function(data){
                        var o = {
                            url: this.url,
                            callback: this.onData,
                            scope: this,
                Severity: Minor
                Found in app/assets/javascripts/ext/src/direct/RemotingProvider.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

                Avoid deeply nested control flow statements.
                Open

                                          if(this.stopEvent){
                                              e.stopEvent();
                                          }
                Severity: Major
                Found in app/assets/javascripts/ext/src/util/KeyMap.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/src/adapter/prototype-bridge.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if(proc.el != el){
                                            startProc(el, "left");
                                        }
                    Severity: Major
                    Found in app/assets/javascripts/ext/src/dd/ScrollManager.js - About 45 mins to fix

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

                          getRange : function(start, end){
                              var items = this.items;
                              if(items.length < 1){
                                  return [];
                              }
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/util/MixedCollection.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 motion has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

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

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

                            set : function(name, value){
                                var argv = arguments;
                                var argc = arguments.length;
                                var expires = (argc > 2) ? argv[2] : null;
                                var path = (argc > 3) ? argv[3] : '/';
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/util/Cookies.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 formRequest has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                formRequest : function(form, uri, cb, data, isUpload, sslUri){
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/adapter/prototype-bridge.js - About 45 mins to fix

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

                              removeChild : function(node, destroy){
                                  var index = this.childNodes.indexOf(node);
                                  if(index == -1){
                                      return false;
                                  }
                          Severity: Minor
                          Found in app/assets/javascripts/ext/src/data/Tree.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 motion has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

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

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

                                extractData : function(root, returnRecords) {
                                    // A bit ugly this, too bad the Record's raw data couldn't be saved in a common property named "raw" or something.
                                    var rawName = (this instanceof Ext.data.JsonReader) ? 'json' : 'node';
                            
                                    var rs = [];
                            Severity: Minor
                            Found in app/assets/javascripts/ext/src/data/DataReader.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

                            Avoid deeply nested control flow statements.
                            Open

                                                if(attr == 'cls'){
                                                    el.className = val;
                                                }else{
                                                    if(useSet){
                                                        el.setAttribute(attr, val);
                            Severity: Major
                            Found in app/assets/javascripts/ext/src/core/DomHelper-more.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/src/adapter/yui-bridge.js - About 45 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language