talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

    EXTLIB.Anim.scroll = function(el, args, duration, easing, cb, scope) {

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

        select : function(index) {
            if(index === false || index === -1) {
                // remove current selection in el
                this.value = this.resetValue;
                this.title = "";
    Severity: Minor
    Found in app/assets/javascripts/ext/src/ext-core/examples/rating/rating.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 elasticIn has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            elasticIn: function (t, b, c, d, a, p) {

      Avoid deeply nested control flow statements.
      Open

                  for(var i = 0, n; n = ns[i]; i++){
                      while((n = n.nextSibling)){
                          if (n.nodeName == utag || n.nodeName == tagName || tagName == '*'){
                              result[++ri] = n;
                          }
      Severity: Major
      Found in app/assets/javascripts/ext/src/ext-core/src/core/DomQuery.js - About 45 mins to fix

        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/ext-core/src/adapter/ext-base-anim.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                  if(!docEl){
                      var f = function(){};
                      f.prototype = El.prototype;
                      docEl = new f();
                      docEl.dom = DOC;
          Severity: Major
          Found in app/assets/javascripts/ext/src/ext-core/src/core/Element.js - About 45 mins to fix

            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/adapter/jquery/ext-jquery-adapter-debug.js - About 45 mins to fix

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

                  function addListener(el, ename, fn, task, wrap, scope){
              Severity: Minor
              Found in app/assets/javascripts/ext/src/ext-core/src/core/EventManager.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if (Ext.isIE && (el.id == undefined || el.id == '')) {
                                el.dom = el.dom;
                            } else {
                                el.dom = DOC.getElementById(el.id) || el.dom;
                            }
                Severity: Major
                Found in app/assets/javascripts/ext/src/ext-core/src/core/Element.js - About 45 mins to fix

                  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/adapter/jquery/ext-jquery-adapter-debug.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/adapter/jquery/ext-jquery-adapter-debug.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  switch (typeof v) {
                                                  case "undefined":
                                                  case "function":
                                                  case "unknown":
                                                      break;
                      Severity: Major
                      Found in app/assets/javascripts/ext/src/ext-core/src/util/JSON.js - About 45 mins to fix

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

                            fxanim : function(args, opt, animType, defaultDur, defaultEase, cb){
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/ext-core/src/core/Fx.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  for (key in val) {
                                                      b += key + ':' + val[key] + ';';
                                                  };
                          Severity: Major
                          Found in app/assets/javascripts/ext/src/ext-core/src/core/DomHelper.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                            while((n = n.nextSibling) && n.nodeType != 1);
                            Severity: Major
                            Found in app/assets/javascripts/ext/src/ext-core/src/core/DomQuery.js - About 45 mins to fix

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

                                      elasticBoth: function (t, b, c, d, a, p) {

                                Avoid deeply nested control flow statements.
                                Open

                                                            while(k--) {
                                                                fn[0].tasks[k].cancel();
                                                            }
                                Severity: Major
                                Found in app/assets/javascripts/ext/src/ext-core/src/core/EventManager.js - About 45 mins to fix

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

                                      function doInsert(el, o, returnElement, pos, sibling, append){
                                  Severity: Minor
                                  Found in app/assets/javascripts/ext/src/ext-core/src/core/DomHelper.js - About 45 mins to fix

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

                                        function checkResponse(o, callback, conn, tId, poll, cbTimeout){
                                    Severity: Minor
                                    Found in app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-ajax.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){
                                                                      unloadListeners[el.id].splice(i, 1);
                                                                  }
                                      Severity: Major
                                      Found in app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-event.js - About 45 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language