opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function addCombinator has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function addCombinator( matcher, combinator, base ) {
  var dir = combinator.dir,
    checkNonElements = base && dir === "parentNode",
    doneName = done++;

Severity: Minor
Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

    Function show has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Tooltip.prototype.show = function () {
        var e = $.Event('show.bs.'+ this.type)
    
        if (this.hasContent() && this.enabled) {
          this.$element.trigger(e)
    Severity: Minor
    Found in cabot/static/bootstrap/js/bootstrap.js - About 1 hr to fix

      Function _attachments has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _attachments: function(input, inst) {
              var showOn, buttonText, buttonImage,
                  appendText = this._get(inst, "appendText"),
                  isRTL = this._get(inst, "isRTL");
      
      
      Severity: Minor
      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

        Function transform has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            elproto.transform = function (tstr) {
                if (tstr == null) {
                    return this._.transform;
                }
                var vbs = this.paper._viewBoxShift,
        Severity: Minor
        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

          Function cluster has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            d3.layout.cluster = function() {
              var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
              function cluster(d, i) {
                var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
                d3_layout_treeVisitAfter(root, function(node) {
          Severity: Minor
          Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

            Function d3_time_format has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function d3_time_format(template) {
                  var n = template.length;
                  function format(date) {
                    var string = [], i = -1, j = 0, c, p, f;
                    while (++i < n) {
            Severity: Minor
            Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

              Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              jQuery.extend = jQuery.fn.extend = function() {
                var src, copyIsArray, copy, name, options, clone,
                  target = arguments[0] || {},
                  i = 1,
                  length = arguments.length,
              Severity: Minor
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  val: function( value ) {
                    var ret, hooks, isFunction,
                      elem = this[0];
                
                    if ( !arguments.length ) {
                Severity: Minor
                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                  Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                      var type, origFn;
                  
                      // Types can be a map of types/handlers
                      if ( typeof types === "object" ) {
                  Severity: Minor
                  Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                    Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      stop: function( type, clearQueue, gotoEnd ) {
                        var stopQueue = function( hooks ) {
                          var stop = hooks.stop;
                          delete hooks.stop;
                          stop( gotoEnd );
                    Severity: Minor
                    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                      Function _optionDatepicker has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _optionDatepicker: function(target, name, value) {
                              var settings, date, minDate, maxDate,
                                  inst = this._getInst(target);
                      
                              if (arguments.length === 2 && typeof name === "string") {
                      Severity: Minor
                      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                        Function scanValues has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                scanValues: function () {
                                    var values = this.values,
                                        valcount = values.length,
                                        xvalues = this.xvalues,
                                        yvalues = this.yvalues,
                        Severity: Minor
                        Found in cabot/static/theme/js/jquery.sparkline.min.js - About 1 hr to fix

                          Function bridge has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          $.widget.bridge = function( name, object ) {
                              var fullName = object.prototype.widgetFullName || name;
                              $.fn[ name ] = function( options ) {
                                  var isMethodCall = typeof options === "string",
                                      args = slice.call( arguments, 1 ),
                          Severity: Minor
                          Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                            Function text has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                R._engine.text = function (vml, x, y, text) {
                                    var el = createNode("shape"),
                                        path = createNode("path"),
                                        o = createNode("textpath");
                                    x = x || 0;
                            Severity: Minor
                            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                              Function setCoords has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      setCoords = function (p, sx, sy, dx, dy, deg) {
                                          var _ = p._,
                                              m = p.matrix,
                                              fillpos = _.fillpos,
                                              o = p.node,
                              Severity: Minor
                              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                                Function getLengthFactory has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    getLengthFactory = function (istotal, subpath) {
                                        return function (path, length, onlystart) {
                                            path = path2curve(path);
                                            var x, y, p, l, sp = "", subpaths = {}, point,
                                                len = 0;
                                Severity: Minor
                                Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

                                        function linePoint(x, y) {
                                          x = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, x));
                                          y = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, y));
                                          var v = pointVisible(x, y);
                                          if (polygon) ring.push([ x, y ]);
                                  Severity: Minor
                                  Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                    Function extent has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        brush.extent = function(z) {
                                          var x0, x1, y0, y1, t;
                                          if (!arguments.length) {
                                            if (x) {
                                              if (xExtentDomain) {
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                      Function pack has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        d3.layout.pack = function() {
                                          var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius;
                                          function pack(d, i) {
                                            var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === "function" ? radius : function() {
                                              return radius;
                                      Severity: Minor
                                      Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                        Function paths has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                              return this.paths = (function() {
                                                var _i, _ref, _ref1, _results;
                                                _results = [];
                                                for (i = _i = 0, _ref = this.options.ykeys.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
                                                  smooth = this.options.smooth === true || (_ref1 = this.options.ykeys[i], __indexOf.call(this.options.smooth, _ref1) >= 0);
                                        Severity: Minor
                                        Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language