sfstanley/citydogshare

View on GitHub

Showing 257 of 576 total issues

Function _slide has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        var _slide = function(params, complete, fade, door) {

            var easing = this.getOptions('easing'),
                distance = this.getStageWidth(),
                from = { left: distance * ( params.rewind ? -1 : 1 ) },
Severity: Minor
Found in app/assets/javascripts/galleria-1.4.2.js - About 1 hr to fix

    Function onload has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                onload = (function( self, callback, src ) {
    
                    return function() {
    
                        var complete = function() {
    Severity: Minor
    Found in app/assets/javascripts/galleria-1.4.2.js - About 1 hr to fix

      Function onThumbLoad has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  onThumbLoad = function( thumb, callback ) {
      
                      // scale when ready
                      thumb.scale({
                          width:    thumb.data.width,
      Severity: Minor
      Found in app/assets/javascripts/galleria-1.4.2.js - About 1 hr to fix

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

            refresh: function() {
                var menus, items,
                    that = this,
                    icon = this.options.icons.submenu,
                    submenus = this.element.find( this.options.menus );
        Severity: Minor
        Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

          Function name has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              $.fn[ name ] = function( options ) {
                  var isMethodCall = typeof options === "string",
                      args = widget_slice.call( arguments, 1 ),
                      returnValue = this;
          
          
          Severity: Minor
          Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

            Function _drawMenu has 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _drawMenu: function() {
                    var that = this;
            
                    // Create menu
                    this.menu = $( "<ul>", {
            Severity: Minor
            Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

              Function shake has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var effectShake = $.effects.effect.shake = function( o, done ) {
              
                  var el = $( this ),
                      props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
                      mode = $.effects.setMode( el, o.mode || "effect" ),
              Severity: Minor
              Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                        if(!(/^(document|window|parent)$/).test(o.containment)) {
                            ce = $(o.containment)[0];
                            co = $(o.containment).offset();
                            over = ($(ce).css("overflow") !== "hidden");
                
                
                Severity: Critical
                Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if (this.floating && horizontalDirection) {
                              return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
                          } else {
                              return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
                          }
                  Severity: Critical
                  Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
                                    $target.parents("#" + $.datepicker._mainDivId).length === 0 &&
                                    !$target.hasClass($.datepicker.markerClassName) &&
                                    !$target.closest("." + $.datepicker._triggerClass).length &&
                                    $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
                    Severity: Critical
                    Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                      Function _eventHandler has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _eventHandler: function( event ) {
                              var options = this.options,
                                  active = this.active,
                                  clicked = $( event.currentTarget ),
                                  clickedIsActive = clicked[ 0 ] === active[ 0 ],
                      Severity: Minor
                      Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                        Function copyConfig has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function copyConfig(to, from) {
                                var i, prop, val;
                        
                                if (typeof from._isAMomentObject !== 'undefined') {
                                    to._isAMomentObject = from._isAMomentObject;
                        Severity: Minor
                        Found in app/assets/javascripts/moment.js - About 1 hr to fix

                          Function hook has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          color.hook = function( hook ) {
                              var hooks = hook.split( " " );
                              each( hooks, function( i, hook ) {
                                  jQuery.cssHooks[ hook ] = {
                                      set: function( elem, value ) {
                          Severity: Minor
                          Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

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

                                _mouseStart: function(event) {
                            
                                    var curleft, curtop, cursor,
                                        o = this.options,
                                        el = this.element;
                            Severity: Minor
                            Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                              Function _attachments has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _attachments: function(input, inst) {
                                      var showOn, buttonText, buttonImage,
                                          appendText = this._get(inst, "appendText"),
                                          isRTL = this._get(inst, "isRTL");
                              
                              
                              Severity: Minor
                              Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                                Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _mouseDown: function(event) {
                                        // don't let more than one widget handle mouseStart
                                        if ( mouseHandled ) {
                                            return;
                                        }
                                Severity: Minor
                                Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                                  Function load has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      load: function( index, event ) {
                                          index = this._getIndex( index );
                                          var that = this,
                                              tab = this.tabs.eq( index ),
                                              anchor = tab.find( ".ui-tabs-anchor" ),
                                  Severity: Minor
                                  Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                                    Function bind has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            bind: function( elem, value ) {
                                    
                                                // todo: revise if alternative tooltip is needed for mobile devices
                                                if (Galleria.TOUCH) {
                                                    return;
                                    Severity: Minor
                                    Found in app/assets/javascripts/galleria-1.4.2.js - About 1 hr to fix

                                      Function _optionDatepicker has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _optionDatepicker: function(target, name, value) {
                                              var settings, date, minDate, maxDate,
                                                  inst = this._getInst(target);
                                      
                                              if (arguments.length === 2 && typeof name === "string") {
                                      Severity: Minor
                                      Found in app/assets/javascripts/jquery-ui.js - About 1 hr to fix

                                        Function raise has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        Galleria.raise = function( msg, fatal ) {
                                        
                                            var type = fatal ? 'Fatal error' : 'Error',
                                        
                                                css = {
                                        Severity: Minor
                                        Found in app/assets/javascripts/galleria-1.4.2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language