angelakuo/citydogshare

View on GitHub

Showing 3,976 of 3,976 total issues

Function handleRemote has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    handleRemote: function(element) {
      var method, url, data, withCredentials, dataType, options;

      if (rails.fire(element, 'ajax:before')) {
        withCredentials = element.data('with-credentials') || null;

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

        buildSegResizeListener: function(seg, isStart) {
            var _this = this;
            var view = this.view;
            var calendar = view.calendar;
            var el = seg.el;

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

              create: function() {
                var
                  html      = $module.data(metadata.html)      || settings.html,
                  variation = $module.data(metadata.variation) || settings.variation,
                  title     = $module.data(metadata.title)     || settings.title,

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

        getJasmineRequireObj().SpyRegistry = function(j$) {
        
          var getErrorMsg = j$.formatErrorMsg('<spyOn>', 'spyOn(<object>, <methodName>)');
        
          function SpyRegistry(options) {

          Function _showDatepicker has 61 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];
                  }

            Function _showDatepicker has 61 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];
                    }

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

                  init = jQuery.fn.init = function( selector, context, root ) {
                      var match, elem;
              
                      // HANDLE: $(""), $(null), $(undefined), $(false)
                      if ( !selector ) {

                Function buildDayDragListener has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    buildDayDragListener: function() {
                        var _this = this;
                        var view = this.view;
                        var isSelectable = view.opt('selectable');
                        var dayClickHit; // null if invalid dayClick

                  Function activate has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  DatePicker.prototype.activate = function( type, datesToEnable ) {
                  
                      var calendar = this,
                          disabledItems = calendar.item.disable,
                          disabledItemsCount = disabledItems.length

                    Function keydown has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            keydown: function( event ) {
                                var allowed, curVal, newVal, step,
                                    index = $( event.target ).data( "ui-slider-handle-index" );
                    
                                switch ( event.keyCode ) {

                      Function activate has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      DatePicker.prototype.activate = function( type, datesToEnable ) {
                      
                          var calendar = this,
                              disabledItems = calendar.item.disable,
                              disabledItemsCount = disabledItems.length

                        Function activate has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        DatePicker.prototype.activate = function( type, datesToEnable ) {
                        
                            var calendar = this,
                                disabledItems = calendar.item.disable,
                                disabledItemsCount = disabledItems.length

                          Function keydown has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  keydown: function( event ) {
                                      var allowed, curVal, newVal, step,
                                          index = $( event.target ).data( "ui-slider-handle-index" );
                          
                                      switch ( event.keyCode ) {

                            Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                var conv2, current, conv, tmp, prev,
                                    converters = {},
                            
                                    // Work with a copy of dataTypes in case we need to modify it for conversion

                              Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                  var conv2, current, conv, tmp, prev,
                                      converters = {},
                              
                                      // Work with a copy of dataTypes in case we need to modify it for conversion

                                Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                    var conv2, current, conv, tmp, prev,
                                        converters = {},
                                
                                        // Work with a copy of dataTypes in case we need to modify it for conversion

                                  Function run has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    QueueRunner.prototype.run = function(queueableFns, recursiveIndex) {
                                      var length = queueableFns.length,
                                        self = this,
                                        iterativeIndex;
                                  
                                  

                                    Function day_of_week__handleStrictParse has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function day_of_week__handleStrictParse(weekdayName, format, strict) {
                                            var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
                                            if (!this._weekdaysParse) {
                                                this._weekdaysParse = [];
                                                this._shortWeekdaysParse = [];

                                      Function drag has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          drag: function( event, ui, inst ) {
                                      
                                              var ts, bs, ls, rs, l, r, t, b, i, first,
                                                  o = inst.options,
                                                  d = o.snapTolerance,

                                        Function drag has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            drag: function( event, ui, inst ) {
                                        
                                                var ts, bs, ls, rs, l, r, t, b, i, first,
                                                    o = inst.options,
                                                    d = o.snapTolerance,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language