NUBIC/surveyor

View on GitHub

Showing 371 of 658 total issues

Function _setOption has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _setOption: function( key, value ) {
        if ( key === "culture" || key === "numberFormat" ) {
            var prevValue = this._parse( this.element.val() );
            this.options[ key ] = value;
            this.element.val( this._format( prevValue ) );
Severity: Minor
Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

    Function _initialActive has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _initialActive: function() {
            var active = this.options.active,
                collapsible = this.options.collapsible,
                locationHash = location.hash.substring( 1 );
    
    
    Severity: Minor
    Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

      Function transition has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          transition: function( other, distance ) {
              var end = color( other ),
                  spaceName = end._space(),
                  space = spaces[ spaceName ],
                  startColor = this.alpha() === 0 ? color( "transparent" ) : this,
      Severity: Minor
      Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

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

            _refreshValue: function() {
                var value = this.options.value,
                    percentage = this._percentage();
        
                this.valueDiv
        Severity: Minor
        Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

          Function _refresh has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _refresh: function() {
                  this._setupDisabled( this.options.disabled );
                  this._setupEvents( this.options.event );
                  this._setupHeightStyle( this.options.heightStyle );
          
          
          Severity: Minor
          Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

            Function complete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    complete: function() {
                        if ( el.to.opacity === 0 ) {
                            el.css( "opacity", el.from.opacity );
                        }
                        if( mode === "hide" ) {
            Severity: Minor
            Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

              Function _destroy has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _destroy: function() {
                      // Destroy (sub)menus
                      this.element
                          .removeAttr( "aria-activedescendant" )
                          .find( ".ui-menu" ).addBack()
              Severity: Minor
              Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                Function addClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    addClass: function( value ) {
                        var classes, elem, cur, clazz, j,
                            i = 0,
                            len = this.length,
                            proceed = typeof value === "string" && value;
                Severity: Minor
                Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js - About 1 hr to fix

                  Function removeClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      removeClass: function( value ) {
                          var classes, elem, cur, clazz, j,
                              i = 0,
                              len = this.length,
                              proceed = arguments.length === 0 || typeof value === "string" && value;
                  Severity: Minor
                  Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js - About 1 hr to fix

                    Function promise has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.ready.promise = function( obj ) {
                        if ( !readyList ) {
                    
                            readyList = jQuery.Deferred();
                    
                    
                    Severity: Minor
                    Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js - About 1 hr to fix

                      Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          html: function( value ) {
                              return jQuery.access( this, function( value ) {
                                  var elem = this[0] || {},
                                      i = 0,
                                      l = this.length;
                      Severity: Minor
                      Found in lib/assets/javascripts/surveyor/jquery-1.9.0.js - About 1 hr to fix

                        Function splitDateTime has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            var splitDateTime = function(dateFormat, dateTimeString, dateSettings, timeSettings) {
                                try {
                                    // The idea is to get the number separator occurances in datetime and the time format requested (since time has 
                                    // fewer unknowns, mostly numbers and am/pm). We will use the time pattern to split.
                                    var separator = timeSettings && timeSettings.separator ? timeSettings.separator : $.timepicker._defaults.separator,
                        Severity: Minor
                        Found in lib/assets/javascripts/surveyor/jquery-ui-timepicker-addon.js - About 1 hr to fix

                          Method parse_and_build has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            def parse_and_build(context, args, original_method, reference_identifier)
                              # clear context
                              [ :question,
                                :dependency,
                                :dependency_condition,
                          Severity: Minor
                          Found in lib/surveyor/parser.rb - About 1 hr to fix

                            Function transfer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            $.effects.effect.transfer = function( o, done ) {
                                var elem = $( this ),
                                    target = $( o.to ),
                                    targetFixed = target.css( "position" ) === "fixed",
                                    body = $("body"),
                            Severity: Minor
                            Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

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

                                  _create: function() {
                                      var selectees,
                                          that = this;
                              
                                      this.element.addClass("ui-selectable");
                              Severity: Minor
                              Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                                Function _initSource has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _initSource: function() {
                                        var array, url,
                                            that = this;
                                        if ( $.isArray(this.options.source) ) {
                                            array = this.options.source;
                                Severity: Minor
                                Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

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

                                      _create: function() {
                                          this.originalCss = {
                                              display: this.element[0].style.display,
                                              width: this.element[0].style.width,
                                              minHeight: this.element[0].style.minHeight,
                                  Severity: Minor
                                  Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                                    Function highlight has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    $.effects.effect.highlight = function( o, done ) {
                                        var elem = $( this ),
                                            props = [ "backgroundImage", "backgroundColor", "opacity" ],
                                            mode = $.effects.setMode( elem, o.mode || "show" ),
                                            animation = {
                                    Severity: Minor
                                    Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                                      Function puff has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      $.effects.effect.puff = function( o, done ) {
                                          var elem = $( this ),
                                              mode = $.effects.setMode( elem, o.mode || "hide" ),
                                              hide = mode === "hide",
                                              percent = parseInt( o.percent, 10 ) || 150,
                                      Severity: Minor
                                      Found in lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js - About 1 hr to fix

                                        Function values has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            values: function( index, newValue ) {
                                                var vals,
                                                    newValues,
                                                    i;
                                        
                                        
                                        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