opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function base3 has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function base3(t, p1, p2, p3, p4) {
Severity: Minor
Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

    Function setViewBox has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        R._engine.setViewBox = function (x, y, w, h, fit) {
    Severity: Minor
    Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

      Function d3_geo_clipPolygon has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
      Severity: Minor
      Found in cabot/static/arachnys/js/d3.js - About 35 mins to fix

        Function setViewBox has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            R._engine.setViewBox = function (x, y, w, h, fit) {
        Severity: Minor
        Found in cabot/static/arachnys/js/raphael.js - About 35 mins to fix

          Function quadtree has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            d3.geom.quadtree = function(points, x1, y1, x2, y2) {
          Severity: Minor
          Found in cabot/static/arachnys/js/d3.js - About 35 mins to fix

            Function labelSeries has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              Morris.labelSeries = function(dmin, dmax, pxwidth, specName, xLabelFormat) {
            Severity: Minor
            Found in cabot/static/arachnys/js/morris.js - About 35 mins to fix

              Function drawLinePoint has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  Line.prototype.drawLinePoint = function(xPos, yPos, size, pointColor, lineIndex) {
              Severity: Minor
              Found in cabot/static/arachnys/js/morris.js - About 35 mins to fix

                Function drawEmptyDonutLabel has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    Donut.prototype.drawEmptyDonutLabel = function(xPos, yPos, color, fontSize, fontWeight) {
                Severity: Minor
                Found in cabot/static/arachnys/js/morris.js - About 35 mins to fix

                  Function drawBar has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      Bar.prototype.drawBar = function(xPos, yPos, width, height, barColor) {
                  Severity: Minor
                  Found in cabot/static/arachnys/js/morris.js - About 35 mins to fix

                    Function drawDonutSegment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        DonutSegment.prototype.drawDonutSegment = function(path, fillColor, strokeColor, hoverFunction, clickFunction) {
                    Severity: Minor
                    Found in cabot/static/arachnys/js/morris.js - About 35 mins to fix

                      Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function Tween( elem, options, prop, end, easing ) {
                      Severity: Minor
                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                        Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          add: function( elem, types, handler, data, selector ) {
                        Severity: Minor
                        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                          Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function condense( unmatched, map, filter, context, xml ) {
                          Severity: Minor
                          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                            Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              remove: function( elem, types, handler, selector, mappedTypes ) {
                            Severity: Minor
                            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                              Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  superMatcher = function( seed, context, xml, results, expandContext ) {
                              Severity: Minor
                              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                                Function on has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                  on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                Severity: Minor
                                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                                  Function augmentWidthOrHeight has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
                                  Severity: Minor
                                  Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                                    Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        "CHILD": function( type, what, argument, first, last ) {
                                    Severity: Minor
                                    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 35 mins to fix

                                      Function render has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        render: function(args) {
                                      
                                          var graph = this.graph;
                                          var points = args.points;
                                          var point = points.filter( function(p) { return p.active } ).shift();
                                      Severity: Minor
                                      Found in cabot/static/arachnys/js/rickshaw.js - About 35 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 send_alert_update has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                      def send_alert_update(service, duty_officers=None):
                                          users = service.users_to_notify.filter(is_active=True)
                                          for alert in service.alerts.all():
                                              if hasattr(alert, 'send_alert_update'):
                                                  try:
                                      Severity: Minor
                                      Found in cabot/cabotapp/alert.py - About 35 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