opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _on: function( suppressDisabledCheck, element, handlers ) {
        var delegateElement,
            instance = this;

        // no suppressDisabledCheck flag, shuffle arguments
Severity: Minor
Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

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

            render: function (fieldset, lookups, options) {
                var self = this,
                    fields = fieldset,
                    match, token, lookupkey, fieldvalue, prec;
                return this.format.replace(this.fre, function () {
    Severity: Minor
    Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

      Function dragMove has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          dragMove = function (e) {
              var x = e.clientX,
                  y = e.clientY,
                  scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,
                  scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,
      Severity: Minor
      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

        Function bars has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              return this.bars = (function() {
                var _i, _len, _ref, _results;
                _ref = this.data;
                _results = [];
                for (idx = _i = 0, _len = _ref.length; _i < _len; idx = ++_i) {
        Severity: Minor
        Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

          Function linePoint has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function linePoint(λ, φ) {
                var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]);
                if (p0) {
                  var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal);
                  d3_geo_cartesianNormalize(inflection);
          Severity: Minor
          Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

            Function d3_geo_pathContext has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function d3_geo_pathContext(context) {
                var pointRadius = 4.5;
                var stream = {
                  point: point,
                  lineStart: function() {
            Severity: Minor
            Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

              Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                each: function( obj, callback, args ) {
                  var value,
                    i = 0,
                    length = obj.length,
                    isArray = isArraylike( obj );
              Severity: Minor
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                Function slide has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  , slide: function (type, next) {
                      var $active = this.$element.find('.item.active')
                        , $next = next || $active[type]()
                        , isCycling = this.interval
                        , direction = type == 'next' ? 'left' : 'right'
                Severity: Minor
                Found in cabot/static/theme/js/bootstrap.js - About 1 hr to fix

                  Function _mouseDown has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _mouseDown: function(event) {
                          // don't let more than one widget handle mouseStart
                          if( mouseHandled ) { return; }
                  
                          // we may have missed mouseup (out of window)
                  Severity: Minor
                  Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                    Function _respectSize has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _respectSize: function( data ) {
                    
                            var o = this._vBoundaries,
                                a = this.axis,
                                ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),
                    Severity: Minor
                    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                      Function drag has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          drag: function(draggable, event) {
                      
                              //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                              if(draggable.options.refreshPositions) {
                                  $.ui.ddmanager.prepareOffsets(draggable, event);
                      Severity: Minor
                      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                        Function _createPlaceholder has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _createPlaceholder: function(that) {
                                that = that || this;
                                var className,
                                    o = that.options;
                        
                        
                        Severity: Minor
                        Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                          Function _possibleChars has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _possibleChars: function (format) {
                                  var iFormat,
                                      chars = "",
                                      literal = false,
                                      // Check whether a format character is doubled
                          Severity: Minor
                          Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                            Function drop has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            $.effects.effect.drop = function( o, done ) {
                            
                                var el = $( this ),
                                    props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
                                    mode = $.effects.setMode( el, o.mode || "hide" ),
                            Severity: Minor
                            Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                              Function parsePathString has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  R.parsePathString = function (pathString) {
                                      if (!pathString) {
                                          return null;
                                      }
                                      var pth = paths(pathString);
                              Severity: Minor
                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                Function registerFont has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    R.registerFont = function (font) {
                                        if (!font.face) {
                                            return font;
                                        }
                                        this.fonts = this.fonts || {};
                                Severity: Minor
                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                  Function d3_geo_clipAntimeridianLine has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function d3_geo_clipAntimeridianLine(listener) {
                                      var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean;
                                      return {
                                        lineStart: function() {
                                          listener.lineStart();
                                  Severity: Minor
                                  Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                    Function Palette has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Rickshaw.Color.Palette = function(args) {
                                    
                                      var color = new Rickshaw.Fixtures.Color();
                                    
                                      args = args || {};
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

                                      Function showHide has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function showHide( elements, show ) {
                                        var display, elem, hidden,
                                          values = [],
                                          index = 0,
                                          length = elements.length;
                                      Severity: Minor
                                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                                        Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function ajaxHandleResponses( s, jqXHR, responses ) {
                                          var firstDataType, ct, finalDataType, type,
                                            contents = s.contents,
                                            dataTypes = s.dataTypes;
                                        
                                        
                                        Severity: Minor
                                        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language