talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

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

        createCallback : function(action, rs) {
            return function(o, success, response) {
                this.activeRequest[action] = undefined;
                if (!success) {
                    if (action === Ext.data.Api.actions.read) {
    Severity: Minor
    Found in app/assets/javascripts/ext/src/data/HttpProxy.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

        color : 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 groupBy has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

          groupBy : function(field, forceRegroup, direction) {
              direction = direction ? (String(direction).toUpperCase() == 'DESC' ? 'DESC' : 'ASC') : this.groupDir;
      
              if (this.groupField == field && this.groupDir == direction && !forceRegroup) {
                  return; // already grouped by this field
      Severity: Minor
      Found in app/assets/javascripts/ext/src/data/GroupingStore.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 anchorTo has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          anchorTo : function(el, alignment, offsets, animate, monitorScroll, callback){        
      Severity: Minor
      Found in app/assets/javascripts/ext/src/core/Element.alignment.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/core/DomHelper-more.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/adapter/jquery-bridge.js - About 45 mins to fix

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

                readRecords : function(o){
                    /**
                     * After any data loads, the raw JSON data is available for further custom processing.  If no data is
                     * loaded or there is a load exception this property will be undefined.
                     * @type Object
            Severity: Minor
            Found in app/assets/javascripts/ext/src/data/JsonReader.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/yui-bridge.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/src/adapter/jquery-bridge.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/jquery-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){
                          this.ownerTree.getSelectionModel().unselect(node);
                          Ext.tree.TreeNode.superclass.removeChild.apply(this, arguments);
                          // only update the ui if we're not destroying
                          if(!destroy){
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/widgets/tree/TreeNode.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 show has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                  Open

                      show : function(){
                          if(this.fireEvent('beforeshow', this) !== false){
                              this.hidden = false;
                              if(this.autoRender){
                                  this.render(Ext.isBoolean(this.autoRender) ? Ext.getBody() : this.autoRender);
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/widgets/Component.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 (i.toLowerCase() == "data") {
                                              parObj.movie = attObj[i];
                                          }
                                          else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
                                              att += ' class="' + attObj[i] + '"';
                  Severity: Major
                  Found in app/assets/javascripts/ext/src/widgets/chart/swfobject.js - About 45 mins to fix

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

                        onMove : function(tree, node, oldParent, newParent, index, refNode){
                            this.childIndent = null;
                            if(this.rendered){
                                var targetNode = newParent.ui.getContainer();
                                if(!targetNode){//target not rendered
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/tree/TreeNodeUI.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 (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
                                                o.setAttribute("class", attObj[m]);
                                            }
                                            else if (m.toLowerCase() != "classid") { // filter out IE specific attribute
                                                o.setAttribute(m, attObj[m]);
                    Severity: Major
                    Found in app/assets/javascripts/ext/src/widgets/chart/swfobject.js - About 45 mins to fix

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

                          initEvents : function(){
                              Ext.tree.TreePanel.superclass.initEvents.call(this);
                      
                              if(this.containerScroll){
                                  Ext.dd.ScrollManager.register(this.body);
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/widgets/tree/TreePanel.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 processDrop has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          processDrop: function(target, data, point, dd, e, dropNode){
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/widgets/tree/TreeDropZone.js - About 45 mins to fix

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

                            onSpecialKey : function(field, e){
                                var key = e.getKey(),
                                    complete = this.completeOnEnter && key == e.ENTER,
                                    cancel = this.cancelOnEsc && key == e.ESC;
                                if(complete || cancel){
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/widgets/Editor.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 onMove has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            onMove : function(tree, node, oldParent, newParent, index, refNode){
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/widgets/tree/TreeNodeUI.js - About 45 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language