stevenocchipinti/dwi-visualiser

View on GitHub

Showing 620 of 620 total issues

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

        if (that._helper && !o.animate && (/static/).test(ce.css('position')))
            $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h });
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 2839..2840

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

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

    attr: function( elem, name, value, pass ) {
        // don't get/set attributes on text, comment and attribute nodes
        if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || elem.nodeType === 2 ) {
            return undefined;
        }
Severity: Major
Found in public/lib/jquery.js - About 2 hrs to fix

    Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function done( status, statusText, responses, headers ) {
    
                // Called once
                if ( state === 2 ) {
                    return;
    Severity: Major
    Found in public/lib/jquery.js - About 2 hrs to fix

      Function filter has 67 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Sizzle.filter = function( expr, set, inplace, not ) {
          var match, anyFound,
              old = expr,
              result = [],
              curLoop = set,
      Severity: Major
      Found in public/lib/jquery.js - About 2 hrs to fix

        Function _doKeyDown has 67 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _doKeyDown: function(event) {
                var inst = $.datepicker._getInst(event.target);
                var handled = true;
                var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');
                inst._keyEvent = true;
        Severity: Major
        Found in public/lib/jquery-ui.js - About 2 hrs to fix

          Function _open has 67 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _open: function( event, target, content ) {
                  var tooltip, events, delayedShow,
                      positionOption = $.extend( {}, this.options.position );
          
                  if ( !content ) {
          Severity: Major
          Found in public/lib/jquery-ui.js - About 2 hrs to fix

            Function _Deferred has 65 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _Deferred: function() {
                    var // callbacks list
                        callbacks = [],
                        // stored [ context , args ]
                        fired,
            Severity: Major
            Found in public/lib/jquery.js - About 2 hrs to fix

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

                          this.element.siblings( ":visible" ).each(function() {
                              var elem = $( this ),
                                  position = elem.css( "position" );
              
                              if ( position === "absolute" || position === "fixed" ) {
              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 5799..5807

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

              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.charAt(0) == "n")
                                  pos += 'top:' + (m[1] + plotOffset.top) + 'px;';
                              else if (p.charAt(0) == "s")
                                  pos += 'bottom:' + (m[1] + plotOffset.bottom) + 'px;';
              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 2219..2222

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

              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

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

                          this.element.siblings( ":visible" ).each(function() {
                              var elem = $( this ),
                                  position = elem.css( "position" );
              
                              if ( position === "absolute" || position === "fixed" ) {
              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 13670..13678

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

              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.charAt(1) == "e")
                                  pos += 'right:' + (m[0] + plotOffset.right) + 'px;';
                              else if (p.charAt(1) == "w")
                                  pos += 'left:' + (m[0] + plotOffset.left) + 'px;';
              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 2215..2218

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

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

                          function plotLine(datapoints, xoffset, yoffset, axisx, axisy) {
                              var points = datapoints.points,
                                  ps = datapoints.pointsize,
                                  prevx = null, prevy = null;
                              
              Severity: Major
              Found in public/lib/jquery.flot.js - About 2 hrs to fix

                Function bounce has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                $.effects.effect.bounce = function( o, done ) {
                    var el = $( this ),
                        props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
                
                        // defaults:
                Severity: Major
                Found in public/lib/jquery-ui.js - About 2 hrs to fix

                  Function _showDatepicker has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _showDatepicker: function(input) {
                          input = input.target || input;
                          if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
                              input = $('input', input.parentNode)[0];
                          if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
                  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

                        show: function( speed ) {
                            if ( standardSpeed( speed ) ) {
                                return this._show.apply( this, arguments );
                            } else {
                                var args = _normalizeArguments.apply( this, arguments );
                    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 5420..5428

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

                    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

                        hide: function( speed ) {
                            if ( standardSpeed( speed ) ) {
                                return this._hide.apply( this, arguments );
                            } else {
                                var args = _normalizeArguments.apply( this, arguments );
                    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 5409..5417

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

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

                            function findNearbyItem(mouseX, mouseY, seriesFilter) {
                                var maxDistance = options.grid.mouseActiveRadius,
                                    smallestDistance = maxDistance * maxDistance + 1,
                                    item = null, foundPoint = false, i, j;
                    
                    
                    Severity: Major
                    Found in public/lib/jquery.flot.js - About 2 hrs to fix

                      Function init has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          init: function( selector, context, rootjQuery ) {
                              var match, elem, ret, doc;
                      
                              // Handle $(""), $(null), or $(undefined)
                              if ( !selector ) {
                      Severity: Major
                      Found in public/lib/jquery.js - About 2 hrs to fix

                        Function clean has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            clean: function( elems, context, fragment, scripts ) {
                                context = context || document;
                        
                                // !context.createElement fails in IE with an error but returns typeof 'object'
                                if ( typeof context.createElement === "undefined" ) {
                        Severity: Major
                        Found in public/lib/jquery.js - About 2 hrs to fix

                          Function _create has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _create: function() {
                                  var that = this,
                                      options = this.options,
                                      active = options.active,
                                      locationHash = location.hash.substring( 1 );
                          Severity: Major
                          Found in public/lib/jquery-ui.js - About 2 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language