crmis/weddings

View on GitHub

Showing 135 of 334 total issues

File viewable_calendar-editable.js has 5492 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery UI - v1.10.3 - 2013-10-31
 * http://jqueryui.com
 * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.effect-drop.js, jquery.ui.effect-fade.js, jquery.ui.effect-scale.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js
 * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 wks to fix

    File viewable_fullcalendar.js has 4418 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * FullCalendar v1.6.4
     * Docs & License: http://arshaw.com/fullcalendar/
     * (c) 2013 Adam Shaw
     */
    Severity: Major
    Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 wk to fix

      Function AgendaView has 684 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function AgendaView(element, calendar, viewName) {
              var t = this;
      
      
              // exports
      Severity: Major
      Found in app/assets/javascripts/viewable_fullcalendar.js - About 3 days to fix

        Function AgendaEventRenderer has 536 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function AgendaEventRenderer() {
                var t = this;
        
        
                // exports
        Severity: Major
        Found in app/assets/javascripts/viewable_fullcalendar.js - About 2 days to fix

          Function DayEventRenderer has 463 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function DayEventRenderer() {
                  var t = this;
          
          
                  // exports
          Severity: Major
          Found in app/assets/javascripts/viewable_fullcalendar.js - About 2 days to fix

            Function BasicView has 371 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function BasicView(element, calendar, viewName) {
                    var t = this;
            
            
                    // exports
            Severity: Major
            Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 day to fix

              Function Calendar has 360 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function Calendar(element, options, eventSources) {
                      var t = this;
              
              
                      // exports
              Severity: Major
              Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 day to fix

                Function View has 328 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function View(element, calendar, viewName) {
                        var t = this;
                
                
                        // exports
                Severity: Major
                Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 day to fix

                  Function EventManager has 303 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function EventManager(options, _sources) {
                          var t = this;
                  
                  
                          // exports
                  Severity: Major
                  Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 day to fix

                    Function size has 156 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $.effects.effect.size = function (o, done) {
                    
                            // Create element
                            var original, baseline, factor,
                                el = $(this),
                    Severity: Major
                    Found in app/assets/javascripts/viewable_calendar-editable.js - About 6 hrs to fix

                      Function position has 147 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          $.fn.position = function (options) {
                              if (!options || !options.of) {
                                  return _position.apply(this, arguments);
                              }
                      
                      
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js - About 5 hrs to fix

                        Function Header has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function Header(calendar, options) {
                                var t = this;
                        
                        
                                // exports
                        Severity: Major
                        Found in app/assets/javascripts/viewable_fullcalendar.js - About 5 hrs to fix

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

                                  _create: function () {
                          
                                      var n, i, handle, axis, hname,
                                          that = this,
                                          o = this.options;
                          Severity: Major
                          Found in app/assets/javascripts/viewable_calendar-editable.js - About 5 hrs to fix

                            Function renderSlotSegs has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function renderSlotSegs(segs, modifiedEventId) {
                            
                                        var i, segCnt = segs.length, seg,
                                            event,
                                            top,
                            Severity: Major
                            Found in app/assets/javascripts/viewable_fullcalendar.js - About 4 hrs to fix

                              Function draggableSlotEvent has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function draggableSlotEvent(event, eventElement, timeElement) {
                                          var coordinateGrid = t.getCoordinateGrid();
                                          var colCnt = getColCnt();
                                          var colWidth = getColWidth();
                                          var snapHeight = getSnapHeight();
                              Severity: Major
                              Found in app/assets/javascripts/viewable_fullcalendar.js - About 4 hrs to fix

                                Function _clear has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _clear: function (event, noPropagation) {
                                
                                            this.reverting = false;
                                            // We delay all events that have to be triggered to after the point where the placeholder has been removed and
                                            // everything else normalized again
                                Severity: Major
                                Found in app/assets/javascripts/viewable_calendar-editable.js - About 3 hrs to fix

                                  Function calendar has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var calendar = function () {
                                      // page is now ready, initialize the calendar...
                                      var current_room = function () {
                                          return window.location.href.match(/rooms\/(\d+)\/viewings/)[1];
                                      };
                                  Severity: Major
                                  Found in app/assets/javascripts/viewable_custom.js - About 3 hrs to fix

                                    Function draggableDayEvent has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function draggableDayEvent(event, eventElement, seg) {
                                                var isStart = seg.isStart;
                                                var origWidth;
                                                var revert;
                                                var allDay = true;
                                    Severity: Major
                                    Found in app/assets/javascripts/viewable_fullcalendar.js - About 3 hrs to fix

                                      Function _mouseDrag has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _mouseDrag: function (event) {
                                      
                                                  this.dragged = true;
                                      
                                                  if (this.options.disabled) {
                                      Severity: Major
                                      Found in app/assets/javascripts/viewable_calendar-editable.js - About 3 hrs to fix

                                        Function renderSection has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function renderSection(position) {
                                                    var e = $("<td class='fc-header-" + position + "'/>");
                                                    var buttonStr = options.header[position];
                                                    if (buttonStr) {
                                                        $.each(buttonStr.split(' '), function (i) {
                                        Severity: Major
                                        Found in app/assets/javascripts/viewable_fullcalendar.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language