opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

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 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 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 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 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 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

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

                    R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {
                        var t1 = 1 - t,
                            t13 = pow(t1, 3),
                            t12 = pow(t1, 2),
                            t2 = t * t,
                Severity: Minor
                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                      elproto.status = function (anim, value) {
                          var out = [],
                              i = 0,
                              len,
                              e;
                  Severity: Minor
                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                        var addArrow = function (o, value, isEnd) {
                            var values = Str(value).toLowerCase().split("-"),
                                se = isEnd ? "end" : "start",
                                i = values.length,
                                type = "classic",
                    Severity: Minor
                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                          paperproto.getFont = function (family, weight, style, stretch) {
                              stretch = stretch || "normal";
                              style = style || "normal";
                              weight = +weight || {normal: 400, bold: 700, lighter: 300, bolder: 800}[weight] || 400;
                              if (!R.fonts) {
                      Severity: Minor
                      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

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

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

                            off: function( types, selector, fn ) {
                              var handleObj, type;
                              if ( types && types.preventDefault && types.handleObj ) {
                                // ( event )  dispatched jQuery.Event
                                handleObj = types.handleObj;
                          Severity: Minor
                          Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                                "*": [function( prop, value ) {
                                  var tween = this.createTween( prop, value ),
                                    target = tween.cur(),
                                    parts = rfxnum.exec( value ),
                                    unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                            Severity: Minor
                            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                              jQuery.fn.offset = function( options ) {
                                if ( arguments.length ) {
                                  return options === undefined ?
                                    this :
                                    this.each(function( i ) {
                              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((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                                            $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                                                if(that._trigger("stop", event) !== false) {
                                                    that._clear();
                                                }
                                Severity: Major
                                Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                          if ($.datepicker._datepickerShowing) {
                                              switch (event.keyCode) {
                                                  case 9: $.datepicker._hideDatepicker();
                                                          handled = false;
                                                          break; // hide on tab out
                                  Severity: Major
                                  Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                    Function _drawPieSlice has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            _drawPieSlice: function (shapeid, x, y, radius, startAngle, endAngle, lineColor, fillColor) {
                                    Severity: Major
                                    Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if ( this.options.tolerance === "pointer" ||
                                                  this.options.forcePointerForContainers ||
                                                  (this.options.tolerance !== "pointer" && this.helperProportions[this.floating ? "width" : "height"] > item[this.floating ? "width" : "height"])
                                              ) {
                                                  return isOverElement;
                                      Severity: Major
                                      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                                        Function _generateMonthYearHeader has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                                    secondary, monthNames, monthNamesShort) {
                                        Severity: Major
                                        Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language