talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

    setSize : function(w, h, a, d, c, e){
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/Layer.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        } else if (item.xtbHidden) {
                            this.unhideItem(item);
                        }
    Severity: Major
    Found in app/assets/javascripts/ext/src/widgets/layout/ToolbarLayout.js - About 45 mins to fix

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

          selectRange : function(startRow, endRow, keepExisting){
              var i;
              if(this.isLocked()){
                  return;
              }
      Severity: Minor
      Found in app/assets/javascripts/ext/src/widgets/grid/RowSelectionModel.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 resolveCell has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

          resolveCell : function(row, col, hscroll) {
              if (!Ext.isNumber(row)) {
                  row = row.rowIndex;
              }
              
      Severity: Minor
      Found in app/assets/javascripts/ext/src/widgets/grid/GridView.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 updateInnerCtSize has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Open

          updateInnerCtSize: function(tSize, calcs) {
              var align   = this.align,
                  padding = this.padding,
                  width   = tSize.width,
                  height  = tSize.height;
      Severity: Minor
      Found in app/assets/javascripts/ext/src/widgets/layout/BoxLayout.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(columns, records, store, startRow, colCount, stripe) {
      Severity: Minor
      Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (!(item.hidden || item.xtbHidden)) {
                                    this.hideItem(item);
                                }
        Severity: Major
        Found in app/assets/javascripts/ext/src/widgets/layout/ToolbarLayout.js - About 45 mins to fix

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

              onResize: function(){
                  var ct = this.container,
                      b;
                  if(ct.collapsed){
                      return;
          Severity: Minor
          Found in app/assets/javascripts/ext/src/widgets/layout/ContainerLayout.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 updateProgress has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

              updateProgress : function(value, text, animate){
                  this.value = value || 0;
                  if(text){
                      this.updateText(text);
                  }
          Severity: Minor
          Found in app/assets/javascripts/ext/src/widgets/ProgressBar.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 (v !== last) {
                                      last = v;
                                      return v + a;
                                  }
          Severity: Major
          Found in app/assets/javascripts/ext/src/widgets/layout/AnchorLayout.js - About 45 mins to fix

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

                    prompt : function(title, msg, fn, scope, multiline, value){
            Severity: Minor
            Found in app/assets/javascripts/ext/src/widgets/MessageBox.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if (topTuples[k].matcher(record)) {
                                          cells[j][k].push(record);
                                      }
              Severity: Major
              Found in app/assets/javascripts/ext/src/widgets/grid/PivotGrid.js - About 45 mins to fix

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

                    onRemove: function(c){
                        Ext.layout.FormLayout.superclass.onRemove.call(this, c);
                        if(this.trackLabels){
                            c.un('show', this.onFieldShow, this);
                            c.un('hide', this.onFieldHide, this);
                Severity: Minor
                Found in app/assets/javascripts/ext/src/widgets/layout/FormLayout.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 handleMouseDown has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                    handleMouseDown : function(g, rowIndex, e){
                        if(e.button !== 0 || this.isLocked()){
                            return;
                        }
                        var view = this.grid.getView();
                Severity: Minor
                Found in app/assets/javascripts/ext/src/widgets/grid/RowSelectionModel.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 scrollTo has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                    scrollTo: function(position, animate) {
                        var oldPosition = this.getScrollPosition(),
                            newPosition = position.constrain(0, this.getMaxScrollBottom());
                        
                        if (newPosition != oldPosition && !this.scrolling) {
                Severity: Minor
                Found in app/assets/javascripts/ext/src/widgets/layout/box/ScrollerOverflow.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 (!col || (col.processEvent && (col.processEvent(name, e, grid, row, cell) !== false))) {
                                            grid.fireEvent('row' + name, grid, row, e);
                                        }
                Severity: Major
                Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if(ci+adjust < 0){
                                              return;
                                          }
                  Severity: Major
                  Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 45 mins to fix

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

                        beforeMoreShow : function(menu) {
                            var items = this.container.items.items,
                                len   = items.length,
                                item,
                                prev;
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/layout/ToolbarLayout.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 onMouseDown has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                        onMouseDown : function(e, t){
                            if(e.button === 0 && t.className == 'x-grid3-row-checker'){ // Only fire if left-click
                                e.stopEvent();
                                var row = e.getTarget('.x-grid3-row');
                                if(row){
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/grid/CheckboxSelectionModel.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 processEvent has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                        processEvent : function(name, e, grid, rowIndex, colIndex){
                            var m = e.getTarget().className.match(this.actionIdRe),
                                item, fn;
                            if (m && (item = this.items[parseInt(m[1], 10)])) {
                                if (name == 'click') {
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/grid/Column.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

                    Severity
                    Category
                    Status
                    Source
                    Language