jkuchar/MultipleFileUpload

View on GitHub

Showing 205 of 353 total issues

File moxie.js has 6042 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
 * v1.2.1
 *
 * Copyright 2013, Moxiecode Systems AB
Severity: Major
Found in public/plupload/js/moxie.js - About 2 wks to fix

    Function swfobject has a Cognitive Complexity of 486 (exceeds 5 allowed). Consider refactoring.
    Open

    ;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;
    if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;
    X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);
    ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");
    if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)];}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac};
    Severity: Minor
    Found in public/uploadify/js/jquery.uploadify-3.1.js - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function swfobject has a Cognitive Complexity of 428 (exceeds 5 allowed). Consider refactoring.
    Open

    var swfobject = function() {
        
        var UNDEF = "undefined",
            OBJECT = "object",
            SHOCKWAVE_FLASH = "Shockwave Flash",
    Severity: Minor
    Found in public/uploadify/js/swfobject (2).js - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function swfobject has a Cognitive Complexity of 428 (exceeds 5 allowed). Consider refactoring.
    Open

    var swfobject = function() {
        
        var UNDEF = "undefined",
            OBJECT = "object",
            SHOCKWAVE_FLASH = "Shockwave Flash",
    Severity: Minor
    Found in public/uploadify/js/swfobject.js - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function Uploader has 788 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    plupload.Uploader = function(options) {
        /**
         * Fires when the current RunTime has been initialized.
         *
         * @event Init
    Severity: Major
    Found in public/plupload/js/plupload.dev.js - About 3 days to fix

      Function swfobject has 662 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var swfobject = function() {
          
          var UNDEF = "undefined",
              OBJECT = "object",
              SHOCKWAVE_FLASH = "Shockwave Flash",
      Severity: Major
      Found in public/uploadify/js/swfobject.js - About 3 days to fix

        Function swfobject has 659 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var swfobject = function() {
            
            var UNDEF = "undefined",
                OBJECT = "object",
                SHOCKWAVE_FLASH = "Shockwave Flash",
        Severity: Major
        Found in public/uploadify/js/swfobject (2).js - About 3 days to fix

          File plupload.dev.js has 1051 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * Plupload - multi-runtime File Uploader
           * v2.1.2
           *
           * Copyright 2013, Moxiecode Systems AB
          Severity: Major
          Found in public/plupload/js/plupload.dev.js - About 2 days to fix

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

            /**
             * jquery.ui.plupload.js
             *
             * Copyright 2013, Moxiecode Systems AB
             * Released under GPL License.
            Severity: Major
            Found in public/plupload/js/jquery.ui.plupload/jquery.ui.plupload.js - About 1 day to fix

              Function XMLHttpRequest has 363 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function XMLHttpRequest() {
                      var self = this,
                          // this (together with _p() @see below) is here to gracefully upgrade to setter/getter syntax where possible
                          props = {
                              /**
              Severity: Major
              Found in public/plupload/js/moxie.js - About 1 day to fix

                File jquery.uploadify-3.1.js has 709 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*
                SWFObject v2.2 <http://code.google.com/p/swfobject/> 
                is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
                */
                ;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;
                Severity: Major
                Found in public/uploadify/js/jquery.uploadify-3.1.js - About 1 day to fix

                  Function ExifParser has 311 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      return function ExifParser() {
                          // Private ExifParser fields
                          var data, tags, Tiff, offsets = {}, tagDescs;
                  
                          data = new BinaryReader();
                  Severity: Major
                  Found in public/plupload/js/moxie.js - About 1 day to fix

                    File swfobject.js has 664 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*!    SWFObject v2.2 <http://code.google.com/p/swfobject/> 
                        is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
                    */
                    
                    var swfobject = function() {
                    Severity: Major
                    Found in public/uploadify/js/swfobject.js - About 1 day to fix

                      File swfobject (2).js has 661 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*!    SWFObject v2.2 <http://code.google.com/p/swfobject/> 
                          is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
                      */
                      
                      var swfobject = function() {
                      Severity: Major
                      Found in public/uploadify/js/swfobject (2).js - About 1 day to fix

                        Function HTML5Image has 287 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function HTML5Image() {
                                var me = this
                                , _img, _imgInfo, _canvas, _binStr, _blob
                                , _modified = false // is set true whenever image is modified
                                , _preserveHeaders = true
                        Severity: Major
                        Found in public/plupload/js/moxie.js - About 1 day to fix

                          Function Image has 278 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function Image() {
                                  RuntimeClient.call(this);
                          
                                  Basic.extend(this, {
                                      /**
                          Severity: Major
                          Found in public/plupload/js/moxie.js - About 1 day to fix

                            Function XMLHttpRequest has 251 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function XMLHttpRequest() {
                                    var self = this
                                    , _xhr
                                    , _filename
                                    ;
                            Severity: Major
                            Found in public/plupload/js/moxie.js - About 1 day to fix

                              Function UAParser has 249 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var UAParser = (function (undefined) {
                              
                                      //////////////
                                      // Constants
                                      /////////////
                              Severity: Major
                              Found in public/plupload/js/moxie.js - About 1 day to fix

                                Function pluploadQueue has 208 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $.fn.pluploadQueue = function(settings) {
                                        if (settings) {
                                            this.each(function() {
                                                var uploader, target, id, contents_bak;
                                
                                
                                Severity: Major
                                Found in public/plupload/js/jquery.plupload.queue/jquery.plupload.queue.js - About 1 day to fix

                                  Function handleUploads has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      public function handleUploads()
                                      {
                                          /* @var $token string */
                                          $token = $this->httpRequest->getQuery("token");
                                  
                                  
                                  Severity: Minor
                                  Found in MultipleFileUpload/UI/Plupload/Controller.php - About 7 hrs to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language