opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

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

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

        function d3_geo_graticuleX(y0, y1, dy) {
          var y = d3.range(y0, y1 - ε, dy).concat(y1);
          return function(x) {
            return y.map(function(y) {
              return [ x, y ];
      Severity: Major
      Found in cabot/static/arachnys/js/d3.js and 1 other location - About 1 hr to fix
      cabot/static/arachnys/js/d3.js on lines 4485..4492

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 72.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              return {
                  top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
                  left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
              };
      Severity: Major
      Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
      cabot/static/theme/js/jquery-ui.js on lines 4467..4470

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 72.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                      left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX;
      Severity: Major
      Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
      cabot/static/theme/js/jquery-ui.js on lines 1491..1491

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 72.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              return {
                  top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
                  left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
              };
      Severity: Major
      Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
      cabot/static/theme/js/jquery-ui.js on lines 1316..1319

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 72.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

        function d3_geo_graticuleY(x0, x1, dx) {
          var x = d3.range(x0, x1 - ε, dx).concat(x1);
          return function(y) {
            return x.map(function(x) {
              return [ x, y ];
      Severity: Major
      Found in cabot/static/arachnys/js/d3.js and 1 other location - About 1 hr to fix
      cabot/static/arachnys/js/d3.js on lines 4477..4484

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 72.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                      top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY;
      Severity: Major
      Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
      cabot/static/theme/js/jquery-ui.js on lines 1494..1494

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 72.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      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 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 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 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 _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 _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 _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 _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
                              Severity
                              Category
                              Status
                              Source
                              Language