opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function _getContainer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    R._getContainer = function (x, y, w, h) {
        var container;
        container = h == null && !R.is(x, "object") ? g.doc.getElementById(x) : x;
        if (container == null) {
            return;
Severity: Minor
Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

    Function brushmove has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function brushmove() {
            var point = d3.mouse(target), moved = false;
            if (offset) {
              point[0] += offset[0];
              point[1] += offset[1];
    Severity: Minor
    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

      Function d3_geom_voronoi has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function d3_geom_voronoi(sites, bbox) {
          var site = sites.sort(d3_geom_voronoiVertexOrder).pop(), x0, y0, circle;
          d3_geom_voronoiEdges = [];
          d3_geom_voronoiCells = new Array(sites.length);
          d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree();
      Severity: Minor
      Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

        Function drawXAxis has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Bar.prototype.drawXAxis = function() {
              var i, label, labelBox, margin, offset, prevAngleMargin, prevLabelMargin, row, textBox, ypos, _i, _ref, _results;
              ypos = this.bottom + this.options.padding / 2;
              prevLabelMargin = null;
              prevAngleMargin = null;
        Severity: Minor
        Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

          Function d3_geo_pointInPolygon has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function d3_geo_pointInPolygon(point, polygon) {
              var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;
              d3_geo_areaRingSum.reset();
              for (var i = 0, n = polygon.length; i < n; ++i) {
                var ring = polygon[i], m = ring.length;
          Severity: Minor
          Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

            Function initialize has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              this.initialize = function(args) {
            
                if (!args.element) throw "Rickshaw.Graph needs a reference to an element";
                if (args.element.nodeType !== 1) throw "Rickshaw.Graph element was defined but not an HTML element";
            
            
            Severity: Minor
            Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

              Function _groups has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                _groups: function() {
              
                  var graph = this.graph;
              
                  var renderGroups = {};
              Severity: Minor
              Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

                Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    setup: function() {
                
                      if ( rformElems.test( this.nodeName ) ) {
                        // IE doesn't fire change on a check/radio until blur; trigger it on click
                        // after a propertychange. Eat the blur-change in special.change.handle.
                Severity: Minor
                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                  Function validateSeries has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    this.validateSeries = function(series) {
                  
                      if (!Array.isArray(series) && !(series instanceof Rickshaw.Series)) {
                        var seriesSignature = Object.prototype.toString.apply(series);
                        throw "series is not an array: " + seriesSignature;
                  Severity: Minor
                  Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

                    Function activate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      Tab.prototype.activate = function (element, container, callback) {
                        var $active    = container.find('> .active')
                        var transition = callback
                          && $.support.transition
                          && $active.hasClass('fade')
                    Severity: Minor
                    Found in cabot/static/bootstrap/js/bootstrap.js - About 1 hr to fix

                      Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function propFilter( props, specialEasing ) {
                        var index, name, easing, value, hooks;
                      
                        // camelCase, specialEasing and expand cssHook pass
                        for ( index in props ) {
                      Severity: Minor
                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                        Function renderSlice has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                renderSlice: function (valuenum, highlight) {
                                    var target = this.target,
                                        options = this.options,
                                        radius = this.radius,
                                        borderWidth = options.get('borderWidth'),
                        Severity: Minor
                        Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                          Function resize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              resize: function (event, ui) {
                                  var that = $(this).data("ui-resizable"),
                                      o = that.options,
                                      os = that.originalSize,
                                      op = that.originalPosition,
                          Severity: Minor
                          Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                            Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    render: function () {
                                        var values = this.values,
                                            target = this.target,
                                            regionShapes = this.regionShapes,
                                            shapes, ids, i, j;
                            Severity: Minor
                            Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                              Function set has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          set: function( elem, value ) {
                                              var parsed, curElem,
                                                  backgroundColor = "";
                              
                                              if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
                              Severity: Minor
                              Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                Function _mouseStop has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _mouseStop: function(event) {
                                
                                        this.resizing = false;
                                        var pr, ista, soffseth, soffsetw, s, left, top,
                                            o = this.options, that = this;
                                Severity: Minor
                                Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                  Function add_option has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
                                        if (option.nodeName.toUpperCase() === "OPTION") {
                                          if (option.text !== "") {
                                            if (group_position != null) {
                                              this.parsed[group_position].children += 1;
                                  Severity: Minor
                                  Found in cabot/static/theme/js/chosen.jquery.js - About 1 hr to fix

                                    Function renderRegion has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            renderRegion: function (valuenum, highlight) {
                                                var values = this.values,
                                                    options = this.options,
                                                    target = this.target,
                                                    canvasHeight, height, halfHeight,
                                    Severity: Minor
                                    Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                                      Function focus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          focus: function( event, item ) {
                                              var nested, focused;
                                              this.blur( event, event && event.type === "focus" );
                                      
                                              this._scrollIntoView( item );
                                      Severity: Minor
                                      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                        Function _fnScrollBarWidth has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function _fnScrollBarWidth ()
                                            {
                                              var inner = document.createElement('p');
                                              var style = inner.style;
                                              style.width = "100%";
                                        Severity: Minor
                                        Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language