opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function scale has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.effects.effect.scale = function( o, done ) {

    // Create element
    var el = $( this ),
        options = $.extend( true, {}, o ),
Severity: Minor
Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

    Function resampleRecursive has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function resampleRecursive(stream) {
          var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
          var resample = {
            point: point,
            lineStart: lineStart,
    Severity: Minor
    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

      Function Grid has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function Grid(options) {
            var _this = this;
            if (typeof options.element === 'string') {
              this.el = $(document.getElementById(options.element));
            } else {
      Severity: Minor
      Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

        Function internalData has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function internalData( elem, name, data, pvt /* Internal Use Only */ ){
          if ( !jQuery.acceptData( elem ) ) {
            return;
          }
        
        
        Severity: Minor
        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

          Function _generatePosition has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _generatePosition: function(event) {
          
                  var top, left,
                      o = this.options,
                      pageX = event.pageX,
          Severity: Minor
          Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

            Function fold has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function _fnDetectHeader has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _fnDetectHeader ( aLayout, nThead )
                  {
                    var nTrs = $(nThead).children('tr');
                    var nTr, nCell;
                    var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
              Severity: Minor
              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                Function d3_time_interval has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function d3_time_interval(local, step, number) {
                    function round(date) {
                      var d0 = local(date), d1 = offset(d0, 1);
                      return date - d0 < d1 - date ? d0 : d1;
                    }
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                  Function drawSeries has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Bar.prototype.drawSeries = function() {
                        var barWidth, bottom, groupWidth, idx, lastTop, left, leftPadding, numBars, row, sidx, size, top, ypos, zeroPos;
                        groupWidth = this.width / this.options.data.length;
                        numBars = this.options.stacked != null ? 1 : this.options.ykeys.length;
                        barWidth = (groupWidth * this.options.barSizeRatio - this.options.barGap * (numBars - 1)) / numBars;
                  Severity: Minor
                  Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

                    Function pie has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      d3.layout.pie = function() {
                        var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ;
                        function pie(data) {
                          var values = data.map(function(d, i) {
                            return +value.call(pie, d, i);
                    Severity: Minor
                    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                      Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function tokenize( selector, parseOnly ) {
                        var matched, match, tokens, type,
                          soFar, groups, preFilters,
                          cached = tokenCache[ selector + " " ];
                      
                      
                      Severity: Minor
                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

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

                          Function _tabKeydown has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _tabKeydown: function( event ) {
                                  /*jshint maxcomplexity:15*/
                                  var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
                                      selectedIndex = this.tabs.index( focusedTab ),
                                      goingForward = true;
                          Severity: Minor
                          Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

                            Function _fnFilter has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive )
                                {
                                  var i;
                                  var rpSearch = _fnFilterCreateSearch( sInput, bRegex, bSmart, bCaseInsensitive );
                                  var oPrevSearch = oSettings.oPreviousSearch;
                            Severity: Minor
                            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                              Function _fnApplyColumnDefs has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
                                  {
                                    var i, iLen, j, jLen, k, kLen;
                              
                                    // Column definitions with aTargets
                              Severity: Minor
                              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                                Function _fnFeatureHtmlFilter has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _fnFeatureHtmlFilter ( oSettings )
                                    {
                                      var oPreviousSearch = oSettings.oPreviousSearch;
                                
                                      var sSearchStr = oSettings.oLanguage.sSearch;
                                Severity: Minor
                                Found in cabot/static/theme/js/jquery.dataTables.min.js - About 1 hr to fix

                                  Function path has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    d3.geo.path = function() {
                                      var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
                                      function path(object) {
                                        if (object) {
                                          if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
                                  Severity: Minor
                                  Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                                    Function addAnchor has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      this.addAnchor = function(line) {
                                        var anchor = document.createElement('a');
                                        anchor.innerHTML = '&#10004;';
                                        anchor.classList.add('action');
                                        line.element.insertBefore(anchor, line.element.firstChild);
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

                                      Function select has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function select( selector, context, results, seed ) {
                                        var i, tokens, token, type, find,
                                          match = tokenize( selector );
                                      
                                        if ( !seed ) {
                                      Severity: Minor
                                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                                        Function _mouseStart has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            _mouseStart: function(event) {
                                        
                                                var o = this.options;
                                        
                                                //Create and append the visible helper
                                        Severity: Minor
                                        Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language