angelakuo/citydogshare

View on GitHub

Showing 3,976 of 3,976 total issues

Function formatDate has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    formatDate: function (format, date, settings) {
        if (!date) {
            return "";
        }

    Function success has 79 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                success: function() {
    
                    // save the instance
                    _galleries.push( self );
    
    

      Function scroll has 79 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function scroll(x) {
                var i, half, delta, dir, tween, el, alignment, xTranslation;
      
                offset = (typeof x === 'number') ? x : offset;
                center = Math.floor((offset + dim / 2) / dim);

        Function scroll has 79 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function scroll(x) {
                  var i, half, delta, dir, tween, el, alignment, xTranslation;
        
                  offset = (typeof x === 'number') ? x : offset;
                  center = Math.floor((offset + dim / 2) / dim);

          Function formatDate has 79 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              formatDate: function (format, date, settings) {
                  if (!date) {
                      return "";
                  }
          
          

            Function stringToken has 78 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Lexer.prototype.stringToken = function() {
                  var $, attempt, delimiter, doc, end, heredoc, i, indent, indentRegex, match, quote, ref2, ref3, regex, token, tokens;
                  quote = (STRING_START.exec(this.chunk) || [])[0];
                  if (!quote) {
                    return 0;

              Function buildFragment has 78 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function buildFragment( elems, context, scripts, selection, ignored ) {
                  var j, elem, contains,
                      tmp, tag, tbody, wrap,
                      l = elems.length,
              
              

                Method has too many lines. [22/10]
                Open

                  def update
                    @event = Event.find(params[:id])
                    if not @is_admin and @event.user != @current_user
                      flash[:notice] = "You may not edit another person's event."
                      redirect_to events_path

                This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

                Function send has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            send: function( headers, complete ) {
                                var i,
                                    xhr = options.xhr();
                
                                xhr.open(

                  Function show has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                            show: function(callback, $subMenu) {
                              var
                                $currentMenu = $subMenu || $menu,
                                start = ($subMenu)
                                  ? function() {}

                    Function send has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                send: function( headers, complete ) {
                                    var i,
                                        xhr = options.xhr();
                    
                                    xhr.open(

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

                          drag: function( event, ui, draggable ) {
                              $.each( draggable.sortables, function() {
                                  var innermostIntersecting = false,
                                      sortable = this;
                      
                      

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

                            drag: function( event, ui, draggable ) {
                                $.each( draggable.sortables, function() {
                                    var innermostIntersecting = false,
                                        sortable = this;
                        
                        

                          Function Datepicker has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function Datepicker() {
                              this._curInst = null; // The current instance in use
                              this._keyEvent = false; // If the last event was a key event
                              this._disabledInputs = []; // List of date picker inputs that have been disabled
                              this._datepickerShowing = false; // True if the popup picker is showing , false if not

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

                                _refresh: function() {
                                    var maxHeight,
                                        options = this.options,
                                        heightStyle = options.heightStyle,
                                        parent = this.element.parent();

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

                                  drag: function( event, ui, draggable ) {
                                      $.each( draggable.sortables, function() {
                                          var innermostIntersecting = false,
                                              sortable = this;
                              
                              

                                Function show has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    show : function( index, rewind, _history ) {
                                
                                        var swipe = this._options.swipe;
                                
                                        // do nothing queue is long || index is false || queue is false and transition is in progress

                                  Function Datepicker has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function Datepicker() {
                                      this._curInst = null; // The current instance in use
                                      this._keyEvent = false; // If the last event was a key event
                                      this._disabledInputs = []; // List of date picker inputs that have been disabled
                                      this._datepickerShowing = false; // True if the popup picker is showing , false if not

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

                                        _refresh: function() {
                                            var maxHeight,
                                                options = this.options,
                                                heightStyle = options.heightStyle,
                                                parent = this.element.parent();

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

                                          drag: function( event, ui, draggable ) {
                                              $.each( draggable.sortables, function() {
                                                  var innermostIntersecting = false,
                                                      sortable = this;
                                      
                                      
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language