NUBIC/surveyor

View on GitHub

Showing 658 of 658 total issues

Function _updateVirtualBoundaries has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _updateVirtualBoundaries: function(forceAspectRatio) {
        var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
            o = this.options;

        b = {
Severity: Minor
Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

    Function left has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            left: function( position, data ) {
                var within = data.within,
                    withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                    outerWidth = within.width,
                    collisionPosLeft = position.left - data.collisionPosition.marginLeft,
    Severity: Minor
    Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

      Function top has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              top: function( position, data ) {
                  var within = data.within,
                      withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                      outerHeight = data.within.height,
                      collisionPosTop = position.top - data.collisionPosition.marginTop,
      Severity: Minor
      Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

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

            stop: function( event ) {
                var that = $(this).data("ui-resizable"),
                    o = that.options,
                    pr = that._proportionallyResizeElements,
                    ista = pr.length && (/textarea/i).test(pr[0].nodeName),
        Severity: Minor
        Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

          Function getDimensions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function getDimensions( elem ) {
              var raw = elem[0];
              if ( raw.nodeType === 9 ) {
                  return {
                      width: elem.width(),
          Severity: Minor
          Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

            Function refresh has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                refresh: function() {
                    //See #8237 & #8828
                    var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
            
                    if ( isDisabled !== this.options.disabled ) {
            Severity: Minor
            Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

              Function _createPlaceholder has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _createPlaceholder: function(that) {
                      that = that || this;
                      var className,
                          o = that.options;
              
              
              Severity: Minor
              Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        setup: function() {
                
                            if ( rformElems.test( this.nodeName ) ) {
                                // IE doesn't fire change on a check/radio until blur; trigger it on click
                                // after a propertychange. Eat the blur-change in special.change.handle.
                Severity: Minor
                Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js - About 1 hr to fix

                  Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function propFilter( props, specialEasing ) {
                      var index, name, easing, value, hooks;
                  
                      // camelCase, specialEasing and expand cssHook pass
                      for ( index in props ) {
                  Severity: Minor
                  Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js - About 1 hr to fix

                    Function _parseTime has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            _parseTime: function(timeString, withDate) {
                                if (!this.inst) {
                                    this.inst = $.datepicker._getInst(this.$input[0]);
                                }
                    
                    
                    Severity: Minor
                    Found in lib/assets/javascripts/surveyor/jquery-ui-timepicker-addon.js - About 1 hr to fix

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

                                      var maxDateTime = $.datepicker._get(dp_inst, 'maxDateTime'),
                                          maxDateTimeDate = new Date(maxDateTime.getFullYear(), maxDateTime.getMonth(), maxDateTime.getDate(), 0, 0, 0, 0);
                      lib/assets/javascripts/surveyor/jquery-ui-timepicker-addon.js on lines 536..537

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

                      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

                                      var minDateTime = $.datepicker._get(dp_inst, 'minDateTime'),
                                          minDateTimeDate = new Date(minDateTime.getFullYear(), minDateTime.getMonth(), minDateTime.getDate(), 0, 0, 0, 0);
                      lib/assets/javascripts/surveyor/jquery-ui-timepicker-addon.js on lines 581..582

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

                      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 ( jQuery.isFunction( html ) ) {
                                  return this.each(function(i) {
                                      jQuery(this).wrapAll( html.call(this, i) );
                                  });
                              }
                      Severity: Major
                      Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js and 1 other location - About 1 hr to fix
                      lib/assets/javascripts/surveyor/jquery-1.9.0.js on lines 5890..5894

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

                      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(this.containers.length === 1) {
                                  this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
                                  this.containers[innermostIndex].containerCache.over = 1;
                              } else {
                      
                      
                      Severity: Major
                      Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js and 1 other location - About 1 hr to fix
                      lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js on lines 12717..12720

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

                      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(this.containers[i].containerCache.over) {
                                          this.containers[i]._trigger("out", event, this._uiHash(this));
                                          this.containers[i].containerCache.over = 0;
                                      }
                      Severity: Major
                      Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js and 1 other location - About 1 hr to fix
                      lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js on lines 12731..12777

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

                      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 ( jQuery.isFunction( html ) ) {
                                  return this.each(function(i) {
                                      jQuery(this).wrapInner( html.call(this, i) );
                                  });
                              }
                      Severity: Major
                      Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js and 1 other location - About 1 hr to fix
                      lib/assets/javascripts/surveyor/jquery-1.9.0.js on lines 5861..5865

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

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

                                  set: function( elem, value ) {
                                      var parsed, curElem,
                                          backgroundColor = "";
                      
                                      if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
                      Severity: Minor
                      Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                        Function resize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            resize: function (event, ui) {
                                var that = $(this).data("ui-resizable"),
                                    o = that.options,
                                    os = that.originalSize,
                                    op = that.originalPosition,
                        Severity: Minor
                        Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                          Function focus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              focus: function( event, item ) {
                                  var nested, focused;
                                  this.blur( event, event && event.type === "focus" );
                          
                                  this._scrollIntoView( item );
                          Severity: Minor
                          Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                            Function _mouseStop has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _mouseStop: function(event) {
                            
                                    this.resizing = false;
                                    var pr, ista, soffseth, soffsetw, s, left, top,
                                        o = this.options, that = this;
                            Severity: Minor
                            Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language