stevenocchipinti/dwi-visualiser

View on GitHub

Showing 620 of 620 total issues

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

            for (i = 0; i < yaxes.length; ++i) {
                axis = yaxes[i];
                if (axis && axis.used)
                    res["y" + axis.n] = axis.c2p(pos.top);
            }
Severity: Major
Found in public/lib/jquery.flot.js and 1 other location - About 2 hrs to fix
public/lib/jquery.flot.js on lines 343..347

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

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 parse has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    parse: function( red, green, blue, alpha ) {
        if ( red === undefined ) {
            this._rgba = [ null, null, null, null ];
            return this;
        }
Severity: Major
Found in public/lib/jquery-ui.js - About 2 hrs to fix

    Function _generateMonthYearHeader has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                secondary, monthNames, monthNamesShort) {
            var changeMonth = this._get(inst, 'changeMonth');
            var changeYear = this._get(inst, 'changeYear');
            var showMonthAfterYear = this._get(inst, 'showMonthAfterYear');
    Severity: Major
    Found in public/lib/jquery-ui.js - About 2 hrs to fix

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

          _mouseStart: function(event) {
              var that = this;
      
              this.opos = [event.pageX, event.pageY];
      
      
      Severity: Major
      Found in public/lib/jquery-ui.js - About 2 hrs to fix

        Function _refreshValue has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _refreshValue: function() {
                var lastValPercent, valPercent, value, valueMin, valueMax,
                    oRange = this.options.range,
                    o = this.options,
                    that = this,
        Severity: Major
        Found in public/lib/jquery-ui.js - About 2 hrs to fix

          Function keydown has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      keydown: function( event ) {
                          if ( this.element.prop( "readOnly" ) ) {
                              suppressKeyPress = true;
                              suppressInput = true;
                              suppressKeyPressRepeat = true;
          Severity: Major
          Found in public/lib/jquery-ui.js - About 2 hrs to fix

            Function _processTabs has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _processTabs: function() {
                    var that = this;
            
                    this.tablist = this._getList()
                        .addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )
            Severity: Major
            Found in public/lib/jquery-ui.js - About 2 hrs to fix

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

                                  if(!p.height()) { p.height(that.currentItem.innerHeight() - parseInt(that.currentItem.css('paddingTop')||0, 10) - parseInt(that.currentItem.css('paddingBottom')||0, 10)); };
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 2 hrs to fix
              public/lib/jquery-ui.js on lines 3831..3831

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

              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

                                  if(!p.width()) { p.width(that.currentItem.innerWidth() - parseInt(that.currentItem.css('paddingLeft')||0, 10) - parseInt(that.currentItem.css('paddingRight')||0, 10)); };
              Severity: Major
              Found in public/lib/jquery-ui.js and 1 other location - About 2 hrs to fix
              public/lib/jquery-ui.js on lines 3830..3830

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

              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 _setOption has 51 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _setOption: function( key, value ) {
                      var isDraggable, isResizable,
                          uiDialog = this.uiDialog;
              
                      switch ( key ) {
              Severity: Major
              Found in public/lib/jquery-ui.js - About 2 hrs to fix

                Function parseOptions has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function parseOptions(opts) {
                            var i;
                            
                            $.extend(true, options, opts);
                            
                Severity: Minor
                Found in public/lib/jquery.flot.js - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
                              var c = $(o.containment);
                              var ce = c[0]; if(!ce) return;
                              var co = c.offset();
                              var over = ($(ce).css("overflow") != 'hidden');
                  Severity: Critical
                  Found in public/lib/jquery-ui.js - About 2 hrs to fix

                    Function _clear has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _clear: function(event, noPropagation) {
                    
                            this.reverting = false;
                            // We delay all events that have to be triggered to after the point where the placeholder has been removed and
                            // everything else normalized again
                    Severity: Minor
                    Found in public/lib/jquery-ui.js - About 2 hrs to fix

                      Function animateClass has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      $.effects.animateClass = function( value, duration, easing, callback ) {
                          var o = $.speed( duration, easing, callback );
                      
                          return this.queue( function() {
                              var animated = $( this ),
                      Severity: Minor
                      Found in public/lib/jquery-ui.js - About 2 hrs to fix

                        Function _mouseCapture has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _mouseCapture: function( event ) {
                                var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
                                    that = this,
                                    o = this.options;
                        
                        
                        Severity: Minor
                        Found in public/lib/jquery-ui.js - About 2 hrs to fix

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

                                          top: cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
                          Severity: Major
                          Found in public/lib/jquery-ui.js and 1 other location - About 2 hrs to fix
                          public/lib/jquery-ui.js on lines 3505..3505

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

                          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: cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),
                          Severity: Major
                          Found in public/lib/jquery-ui.js and 1 other location - About 2 hrs to fix
                          public/lib/jquery-ui.js on lines 3506..3506

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

                          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 allocateAxisBoxFirstPhase has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function allocateAxisBoxFirstPhase(axis) {
                                      // find the bounding box of the axis by looking at label
                                      // widths/heights and ticks, make room by diminishing the
                                      // plotOffset
                          
                          
                          Severity: Minor
                          Found in public/lib/jquery.flot.js - About 1 hr to fix

                            Function formatDate has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                $.plot.formatDate = function(d, fmt, monthNames) {
                                    var leftPad = function(n) {
                                        n = "" + n;
                                        return n.length == 1 ? "0" + n : n;
                                    };
                            Severity: Minor
                            Found in public/lib/jquery.flot.js - About 1 hr to fix

                              Function _contactContainers has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _contactContainers: function(event) {
                              
                                      // get innermost container that intersects with item
                                      var innermostContainer = null, innermostIndex = null;
                              
                              
                              Severity: Minor
                              Found in public/lib/jquery-ui.js - About 1 hr to fix
                                Severity
                                Category
                                Status
                                Source
                                Language