angelakuo/citydogshare

View on GitHub

Showing 3,976 of 3,976 total issues

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

DatePicker.prototype.validate = function( type, dateObject, options ) {

    var calendar = this,

        // Keep a reference to the original date.

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

        function prepareElementRoot() {
    
            P.$root.
    
                on({

      Consider simplifying this complex logical expression.
      Open

          if ( !options || !options.nav ) if (
              /* 1 */ ( !isFlippedBase && calendar.disabled( dateObject ) ) ||
              /* 2 */ ( isFlippedBase && calendar.disabled( dateObject ) && ( hasEnabledWeekdays || hasEnabledBeforeTarget || hasEnabledAfterTarget ) ) ||
              /* 3 */ ( !isFlippedBase && (dateObject.pick <= minLimitObject.pick || dateObject.pick >= maxLimitObject.pick) )
          ) {

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

                  onKeyDown = function(e){
                    // TAB - switch to another input
                    if(e.which == 9){
                      $newSelect.trigger('close');
                      return;

          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 ),

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

                _makeResizable: function() {
                    var that = this,
                        options = this.options,
                        handles = options.resizable,
                        // .ui-resizable has position: relative defined in the stylesheet

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

                  buildViewSpec: function(requestedViewType) {
                      var viewOverrides = this.overrides.views || {};
                      var specChain = []; // for the view. lowest to highest priority
                      var defaultsChain = []; // for the view. lowest to highest priority
                      var overridesChain = []; // for the view. lowest to highest priority

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

                function internalRemoveData( elem, name, pvt ) {
                    if ( !acceptData( elem ) ) {
                        return;
                    }
                
                

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

                  getJasmineRequireObj().SpyStrategy = function(j$) {
                  
                    function SpyStrategy(options) {
                      options = options || {};
                  
                  

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

                                    item: function( rowCounter ) {
                    
                                        // If Monday is the first day and the month starts on Sunday, shift the date back a week.
                                        var shiftDateBy = settings.firstDay && calendar.create([ viewsetObject.year, viewsetObject.month, 1 ]).day === 0 ? -7 : 0
                    
                    

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

                          function configFromStringAndFormat(config) {
                              // TODO: Move this to another part of the creation flow to prevent circular deps
                              if (config._f === utils_hooks__hooks.ISO_8601) {
                                  configFromISO(config);
                                  return;

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

                            _setOption: function( key, value ) {
                                var isDraggable, isResizable,
                                    uiDialog = this.uiDialog;
                        
                                if ( key === "dialogClass" ) {

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

                          Galleria.addTheme = function( theme ) {
                          
                              // make sure we have a name
                              if ( !theme.name ) {
                                  Galleria.raise('No theme name specified');

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

                                            item: function( rowCounter ) {
                            
                                                // If Monday is the first day and the month starts on Sunday, shift the date back a week.
                                                var shiftDateBy = settings.firstDay && calendar.create([ viewsetObject.year, viewsetObject.month, 1 ]).day === 0 ? -7 : 0
                            
                            

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

                                              item: function( rowCounter ) {
                              
                                                  // If Monday is the first day and the month starts on Sunday, shift the date back a week.
                                                  var shiftDateBy = settings.firstDay && calendar.create([ viewsetObject.year, viewsetObject.month, 1 ]).day === 0 ? -7 : 0
                              
                              

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

                                    _setOption: function( key, value ) {
                                        var isDraggable, isResizable,
                                            uiDialog = this.uiDialog;
                                
                                        if ( key === "dialogClass" ) {

                                  Function fgSegHtml has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      fgSegHtml: function(seg, disableResizing) {
                                          var view = this.view;
                                          var event = seg.event;
                                          var isDraggable = view.isEventDraggable(event);
                                          var isResizableFromStart = !disableResizing && event.allDay &&

                                    Function makeMoment has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function makeMoment(args, parseAsUTC, parseZone) {
                                        var input = args[0];
                                        var isSingleString = args.length == 1 && typeof input === 'string';
                                        var isAmbigTime;
                                        var isAmbigZone;

                                      Function internalData has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
                                          if ( !acceptData( elem ) ) {
                                              return;
                                          }
                                      
                                      

                                        Function _mouseCapture has 48 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
                                          Category
                                          Status
                                          Source
                                          Language