Matho/refinerycms-photo-gallery

View on GitHub

Showing 201 of 315 total issues

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

(function (f, a, c, g, e) {
    var h = {};

    function b(i) {
        return c.translate(i) || i

    Function w has 122 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                function w(A) {
                    var D = 0, C = 0, z = ("FileReader" in h) ? new FileReader : null;
    
                    function B() {
                        var I, M, K, L, H, J, F, E = s.settings.url;

      Function w has 122 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  function w(A) {
                      var D = 0, C = 0, z = ("FileReader" in h) ? new FileReader : null;
      
                      function B() {
                          var I, M, K, L, H, J, F, E = s.settings.url;

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

                    send: function(meta, data) {
                        var target = this
                        , isGecko2_5_6 = (Env.browser === 'Mozilla' && Env.verComp(Env.version, 4, '>=') && Env.verComp(Env.version, 7, '<'))
                        , isAndroidBrowser = Env.browser === 'Android Browser'
                        , mustSendAsBinary = false
        Severity: Major
        Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 4 hrs to fix

          Function B has 118 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          function B() {
                              var I, M, K, L, H, J, F, E = s.settings.url;
          
                              function G(V) {
                                  var T = 0, N = "----pluploadboundary" + j.guid(), O, P = "--", U = "\r\n", R = "";

            Function B has 118 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                            function B() {
                                var I, M, K, L, H, J, F, E = s.settings.url;
            
                                function G(V) {
                                    var T = 0, N = "----pluploadboundary" + j.guid(), O, P = "--", U = "\r\n", R = "";

              Function setOption has 116 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function setOption(option, value, init) {
                      var self = this, reinitRequired = false;
              
                      function _setOption(option, value, init) {
                          var oldValue = settings[option];

                Function _doXHR has 112 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function _doXHR(data) {
                            var self = this;
                            
                            _start_time = new Date().getTime();
                
                
                Severity: Major
                Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 4 hrs to fix

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

                          function uploadNextChunk() {
                              var chunkBlob, formData, args = {}, curChunkSize;
                  
                              // make sure that file wasn't cancelled and upload is not stopped in general
                              if (file.status !== plupload.UPLOADING || up.state === plupload.STOPPED) {

                    Function _start has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            _start: function (index) {
                                var coming = {},
                                    element = F.group[index] || null,
                                    isDom,
                                    href,

                      Function FileInput has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function FileInput() {
                              var _options;
                      
                              Basic.extend(this, {
                                  init: function(options) {
                      Severity: Major
                      Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 4 hrs to fix

                        Function FileInput has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function FileInput(options) {
                                if (MXI_DEBUG) {
                                    Env.log("Instantiating FileInput...");    
                                }
                        
                        
                        Severity: Major
                        Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 4 hrs to fix

                          Function _displayThumbs has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _displayThumbs: function() {
                                  var self = this
                                  , tw, th // thumb width/height
                                  , cols
                                  , num = 0 // number of simultaneously visible thumbs

                            Function SilverlightRuntime has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function SilverlightRuntime(options) {
                                    var I = this, initTimer;
                            
                                    options = Basic.extend({ xap_url: Env.xap_url }, options);
                            
                            
                            Severity: Major
                            Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 3 hrs to fix

                              Function initControls has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function initControls(settings, cb) {
                                      var self = this, inited = 0, queue = [];
                              
                                      // common settings
                                      var options = {

                                Function JPEG has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function JPEG(data) {
                                        var _br, _hm, _ep, _info;
                                
                                        _br = new BinaryReader(data);
                                
                                
                                Severity: Major
                                Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 3 hrs to fix

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

                                              send: function(meta, data) {
                                                  var target = this, I = target.getRuntime(), uid, form, input, blob;
                                  
                                                  _status = _response = null;
                                  
                                  
                                  Severity: Major
                                  Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 3 hrs to fix

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

                                                        function G(V) {
                                                            var T = 0, N = "----pluploadboundary" + j.guid(), O, P = "--", U = "\r\n", R = "";
                                                            q = new XMLHttpRequest;
                                                            if (q.upload) {
                                                                q.upload.onprogress = function (W) {

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

                                                          function G(V) {
                                                              var T = 0, N = "----pluploadboundary" + j.guid(), O, P = "--", U = "\r\n", R = "";
                                                              q = new XMLHttpRequest;
                                                              if (q.upload) {
                                                                  q.upload.onprogress = function (W) {

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

                                            return function JPEGHeaders(data) {
                                                var headers = [], _br, idx, marker, length = 0;
                                        
                                                _br = new BinaryReader(data);
                                        
                                        
                                        Severity: Major
                                        Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language