tadyjp/rendezvous

View on GitHub

Showing 29 of 37 total issues

File jquery.fileupload.js has 1077 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * jQuery File Upload Plugin 5.40.1
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2010, Sebastian Tschan
Severity: Major
Found in app/assets/javascripts/lib/jquery.fileupload.js - About 2 days to fix

    File odometer.js has 575 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function() {
      var COUNT_FRAMERATE, COUNT_MS_PER_FRAME, DIGIT_FORMAT, DIGIT_HTML, DIGIT_SPEEDBOOST, DURATION, FORMAT_MARK_HTML, FORMAT_PARSER, FRAMERATE, FRAMES_PER_VALUE, MS_PER_FRAME, MutationObserver, Odometer, RIBBON_HTML, TRANSITION_END_EVENTS, TRANSITION_SUPPORT, VALUE_HTML, addClass, createFromHTML, fractionalPart, now, removeClass, requestAnimationFrame, round, transitionCheckStyles, trigger, truncate, wrapJQuery, _jQueryWrapped, _old, _ref, _ref1,
        __slice = [].slice;
    
      VALUE_HTML = '<span class="odometer-value"></span>';
    Severity: Major
    Found in app/assets/javascripts/lib/odometer.js - About 1 day to fix

      File jquery.ui.widget.js has 409 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * jQuery UI Widget 1.10.4+amd
       * https://github.com/blueimp/jQuery-File-Upload
       *
       * Copyright 2014 jQuery Foundation and other contributors
      Severity: Minor
      Found in app/assets/javascripts/lib/jquery.ui.widget.js - About 5 hrs to fix

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

                        send: function (_, completeCallback) {
                            form = $('<form style="display:none;"></form>');
                            form.attr('accept-charset', options.formAcceptCharset);
                            addParamChar = /\?/.test(options.url) ? '&' : '?';
                            // XDomainRequest only supports GET and POST:
        Severity: Major
        Found in app/assets/javascripts/lib/jquery.iframe-transport.js - About 3 hrs to fix

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

                  _chunkedUpload: function (options, testOnly) {
                      options.uploadedBytes = options.uploadedBytes || 0;
                      var that = this,
                          file = options.files[0],
                          fs = file.size,
          Severity: Major
          Found in app/assets/javascripts/lib/jquery.fileupload.js - About 3 hrs to fix

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

                Odometer.prototype.animateSlide = function(newValue) {
                  var boosted, cur, diff, digitCount, digits, dist, end, fractionalCount, frame, frames, i, incr, j, mark, numEl, oldValue, start, _base, _i, _j, _k, _l, _len, _len1, _len2, _m, _ref, _results;
                  oldValue = this.value;
                  fractionalCount = this.getFractionalDigitCount(oldValue, newValue);
                  if (fractionalCount) {
            Severity: Major
            Found in app/assets/javascripts/lib/odometer.js - About 3 hrs to fix

              Function _onSend has 75 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      _onSend: function (e, data) {
                          if (!data.submit) {
                              this._addConvenienceMethods(e, data);
                          }
                          var that = this,
              Severity: Major
              Found in app/assets/javascripts/lib/jquery.fileupload.js - About 3 hrs to fix

                Function widget has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                $.widget = function( name, base, prototype ) {
                    var fullName, existingConstructor, constructor, basePrototype,
                        // proxiedPrototype allows the provided prototype to remain unmodified
                        // so that it can be used as a mixin for multiple widgets (#8876)
                        proxiedPrototype = {},
                Severity: Major
                Found in app/assets/javascripts/lib/jquery.ui.widget.js - About 2 hrs to fix

                  Function _onAdd has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          _onAdd: function (e, data) {
                              var that = this,
                                  result = true,
                                  options = $.extend({}, this.options, data),
                                  files = data.files,
                  Severity: Major
                  Found in app/assets/javascripts/lib/jquery.fileupload.js - About 2 hrs to fix

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

                            _initXHRData: function (options) {
                                var that = this,
                                    formData,
                                    file = options.files[0],
                                    // Ignore non-multipart setting if not supported:
                    Severity: Major
                    Found in app/assets/javascripts/lib/jquery.fileupload.js - About 2 hrs to fix

                      Function _addConvenienceMethods has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              _addConvenienceMethods: function (e, data) {
                                  var that = this,
                                      getPromise = function (args) {
                                          return $.Deferred().resolveWith(that, args).promise();
                                      };
                      Severity: Major
                      Found in app/assets/javascripts/lib/jquery.fileupload.js - About 2 hrs to fix

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

                            function Odometer(options) {
                              var e, k, property, v, _base, _i, _len, _ref, _ref1, _ref2,
                                _this = this;
                              this.options = options;
                              this.el = this.options.el;
                        Severity: Minor
                        Found in app/assets/javascripts/lib/odometer.js - About 2 hrs to fix

                          Function render has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Odometer.prototype.render = function(value) {
                                var classes, cls, digit, match, newClasses, theme, wholePart, _i, _j, _len, _len1, _ref;
                                if (value == null) {
                                  value = this.value;
                                }
                          Severity: Minor
                          Found in app/assets/javascripts/lib/odometer.js - About 1 hr to fix

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

                                    send: function (data) {
                                        if (data && !this.options.disabled) {
                                            if (data.fileInput && !data.files) {
                                                var that = this,
                                                    dfd = $.Deferred(),
                            Severity: Minor
                            Found in app/assets/javascripts/lib/jquery.fileupload.js - About 1 hr to fix

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

                              $.widget.bridge = function( name, object ) {
                                  var fullName = object.prototype.widgetFullName || name;
                                  $.fn[ name ] = function( options ) {
                                      var isMethodCall = typeof options === "string",
                                          args = slice.call( arguments, 1 ),
                              Severity: Minor
                              Found in app/assets/javascripts/lib/jquery.ui.widget.js - About 1 hr to fix

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

                                                send = function () {
                                                    that._sending += 1;
                                                    // Set timer for bitrate progress calculation:
                                                    options._bitrateTimer = new that._BitrateTimer();
                                                    jqXHR = jqXHR || (
                                Severity: Minor
                                Found in app/assets/javascripts/lib/jquery.fileupload.js - About 1 hr to fix

                                  Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _on: function( suppressDisabledCheck, element, handlers ) {
                                          var delegateElement,
                                              instance = this;
                                  
                                          // no suppressDisabledCheck flag, shuffle arguments
                                  Severity: Minor
                                  Found in app/assets/javascripts/lib/jquery.ui.widget.js - About 1 hr to fix

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

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

                                      Function _onProgress has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _onProgress: function (e, data) {
                                                  if (e.lengthComputable) {
                                                      var now = ((Date.now) ? Date.now() : (new Date()).getTime()),
                                                          loaded;
                                                      if (data._time && data.progressInterval &&
                                      Severity: Minor
                                      Found in app/assets/javascripts/lib/jquery.fileupload.js - About 1 hr to fix

                                        Function _handleFileTreeEntry has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                _handleFileTreeEntry: function (entry, path) {
                                                    var that = this,
                                                        dfd = $.Deferred(),
                                                        errorHandler = function (e) {
                                                            if (e && !e.entry) {
                                        Severity: Minor
                                        Found in app/assets/javascripts/lib/jquery.fileupload.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language