opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function cleanData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  cleanData: function( elems, /* internal */ acceptData ) {
    var elem, type, id, data,
      i = 0,
      internalKey = jQuery.expando,
      cache = jQuery.cache,
Severity: Minor
Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

    Function style has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      style: function( elem, name, value, extra ) {
        // Don't set styles on text and comment nodes
        if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
          return;
        }
    Severity: Minor
    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                  if ((params.stroke && params.stroke != "none") ||
                      params["stroke-width"] ||
                      params["stroke-opacity"] != null ||
                      params["stroke-dasharray"] ||
                      params["stroke-miterlimit"] ||
      Severity: Critical
      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                if (
                    px2 < +mmin(x1, x2).toFixed(2) ||
                    px2 > +mmax(x1, x2).toFixed(2) ||
                    px2 < +mmin(x3, x4).toFixed(2) ||
                    px2 > +mmax(x3, x4).toFixed(2) ||
        Severity: Critical
        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                      } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                        diff = cache[1];
          
                      // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                      } else {
          Severity: Critical
          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                  if ( start && start[ 3 ] !== unit ) {
                    // Trust units reported by jQuery.css
                    unit = unit || start[ 3 ];
            
                    // Make sure we update the tween properties later on
            Severity: Critical
            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

              Function _drawPieSlice has 33 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      _drawPieSlice: function (shapeid, x, y, radius, startAngle, endAngle, lineColor, fillColor) {
                          var vpath, startx, starty, endx, endy, stroke, fill, vel;
                          if (startAngle === endAngle) {
                              return '';  // VML seems to have problem when start angle equals end angle.
                          }
              Severity: Minor
              Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                Function keyup_checker has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    AbstractChosen.prototype.keyup_checker = function(evt) {
                      var stroke, _ref;
                
                      stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
                      this.search_field_scale();
                Severity: Minor
                Found in cabot/static/theme/js/chosen.jquery.js - About 1 hr to fix

                  Function intersect has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  $.ui.intersect = function(draggable, droppable, toleranceMode) {
                  
                      if (!droppable.offset) {
                          return false;
                      }
                  Severity: Minor
                  Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                    Function _keydown has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _keydown: function( event ) {
                            /*jshint maxcomplexity:15*/
                            if ( event.altKey || event.ctrlKey ) {
                                return;
                            }
                    Severity: Minor
                    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                      Function top has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              top: function( position, data ) {
                                  var within = data.within,
                                      withinOffset = within.offset.top + within.scrollTop,
                                      outerHeight = within.height,
                                      offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
                      Severity: Minor
                      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                        Function top has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                top: function( position, data ) {
                                    var within = data.within,
                                        withinOffset = within.offset.top + within.scrollTop,
                                        outerHeight = within.height,
                                        offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
                        Severity: Minor
                        Found in cabot/static/theme/js/jquery.ui.position.js - About 1 hr to fix

                          Function toHex has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              var toHex = function (color) {
                                  if (R.vml) {
                                      // http://dean.edwards.name/weblog/2009/10/convert-any-colour-value-to-hex-in-msie/
                                      var trim = /^\s+|\s+$/g;
                                      var bod;
                          Severity: Minor
                          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                            Function createPath has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Line.createPath = function(coords, smooth, bottom) {
                                  var coord, g, grads, i, ix, lg, path, prevCoord, x1, x2, y1, y2, _i, _len;
                                  path = "";
                                  if (smooth) {
                                    grads = Morris.Line.gradients(coords);
                            Severity: Minor
                            Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

                              Function stream has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  albersUsa.stream = function(stream) {
                                    var lower48Stream = lower48.stream(stream), alaskaStream = alaska.stream(stream), hawaiiStream = hawaii.stream(stream);
                                    return {
                                      point: function(x, y) {
                                        lower48Stream.point(x, y);
                              Severity: Minor
                              Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                Function d3_scale_quantile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function d3_scale_quantile(domain, range) {
                                    var thresholds;
                                    function rescale() {
                                      var k = 0, q = range.length;
                                      thresholds = [];
                                Severity: Minor
                                Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                  Function addHighlightEvents has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    this.addHighlightEvents = function (l) {
                                  
                                      l.element.addEventListener( 'mouseover', function(e) {
                                  
                                        if (activeLine) return;
                                  Severity: Minor
                                  Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

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

                                      initialize: function (data, palette, options) {
                                    
                                        options = options || {};
                                    
                                        if (typeof(options.timeInterval) === 'undefined') {
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

                                      Function applyPlacement has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        Tooltip.prototype.applyPlacement = function(offset, placement) {
                                          var replace
                                          var $tip   = this.tip()
                                          var width  = $tip[0].offsetWidth
                                          var height = $tip[0].offsetHeight
                                      Severity: Minor
                                      Found in cabot/static/bootstrap/js/bootstrap.js - About 1 hr to fix

                                        Function _normalizeArguments has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function _normalizeArguments( effect, options, speed, callback ) {
                                        
                                            // allow passing all options as the first parameter
                                            if ( $.isPlainObject( effect ) ) {
                                                options = effect;
                                        Severity: Minor
                                        Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language