jkuchar/MultipleFileUpload

View on GitHub

Showing 353 of 353 total issues

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

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

              function testPlayerVersion() {
                  var b = doc.getElementsByTagName("body")[0];
                  var o = createElement(OBJECT);
                  o.setAttribute("type", FLASH_MIME_TYPE);
                  var t = b.appendChild(o);
          Severity: Major
          Found in public/uploadify/js/swfobject (2).js and 1 other location - About 1 day to fix
          public/uploadify/js/swfobject.js on lines 193..221

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 266.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Identical blocks of code found in 2 locations. Consider refactoring.
          Open

              function testPlayerVersion() {
                  var b = doc.getElementsByTagName("body")[0];
                  var o = createElement(OBJECT);
                  o.setAttribute("type", FLASH_MIME_TYPE);
                  var t = b.appendChild(o);
          Severity: Major
          Found in public/uploadify/js/swfobject.js and 1 other location - About 1 day to fix
          public/uploadify/js/swfobject (2).js on lines 193..221

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 266.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          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

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                  var cleanup = function() {
                      if (ua.ie && ua.win) {
                          window.attachEvent("onunload", function() {
                              // remove listeners to avoid memory leaks
                              var ll = listenersArr.length;
              Severity: Major
              Found in public/uploadify/js/swfobject (2).js and 1 other location - About 1 day to fix
              public/uploadify/js/swfobject.js on lines 606..630

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 240.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Identical blocks of code found in 2 locations. Consider refactoring.
              Open

                  var cleanup = function() {
                      if (ua.ie && ua.win) {
                          window.attachEvent("onunload", function() {
                              // remove listeners to avoid memory leaks
                              var ll = listenersArr.length;
              Severity: Major
              Found in public/uploadify/js/swfobject.js and 1 other location - About 1 day to fix
              public/uploadify/js/swfobject (2).js on lines 596..620

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 240.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              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

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                              if (ua.ie && ua.win) { // Internet Explorer + the HTML object element + W3C DOM methods do not combine: fall back to outerHTML
                                  var att = "";
                                  for (var i in attObj) {
                                      if (attObj[i] != Object.prototype[i]) { // filter out prototype additions from other potential libraries
                                          if (i.toLowerCase() == "data") {
                  Severity: Major
                  Found in public/uploadify/js/swfobject.js and 1 other location - About 1 day to fix
                  public/uploadify/js/swfobject (2).js on lines 414..459

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 229.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                              if (ua.ie && ua.win) { // Internet Explorer + the HTML object element + W3C DOM methods do not combine: fall back to outerHTML
                                  var att = "";
                                  for (var i in attObj) {
                                      if (attObj[i] != Object.prototype[i]) { // filter out prototype additions from other potential libraries
                                          if (i.toLowerCase() == "data") {
                  Severity: Major
                  Found in public/uploadify/js/swfobject (2).js and 1 other location - About 1 day to fix
                  public/uploadify/js/swfobject.js on lines 414..469

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 229.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                      function abstractAltContent(obj) {
                          var ac = createElement("div");
                          if (ua.win && ua.ie) {
                              ac.innerHTML = obj.innerHTML;
                          }
                  Severity: Major
                  Found in public/uploadify/js/swfobject (2).js and 1 other location - About 1 day to fix
                  public/uploadify/js/swfobject.js on lines 383..403

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                      function abstractAltContent(obj) {
                          var ac = createElement("div");
                          if (ua.win && ua.ie) {
                              ac.innerHTML = obj.innerHTML;
                          }
                  Severity: Major
                  Found in public/uploadify/js/swfobject.js and 1 other location - About 1 day to fix
                  public/uploadify/js/swfobject (2).js on lines 383..403

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      function hasPlayerVersion(rv) {
                          var pv = ua.pv, v = rv.split(".");
                          v[0] = parseInt(v[0], 10);
                          v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
                          v[2] = parseInt(v[2], 10) || 0;
                  Severity: Major
                  Found in public/uploadify/js/swfobject.js and 1 other location - About 1 day to fix
                  public/uploadify/js/swfobject (2).js on lines 531..537

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 210.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      function hasPlayerVersion(rv) {
                          var pv = ua.pv, v = rv.split(".");
                          v[0] = parseInt(v[0], 10);
                          v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
                          v[2] = parseInt(v[2], 10) || 0;
                  Severity: Major
                  Found in public/uploadify/js/swfobject (2).js and 1 other location - About 1 day to fix
                  public/uploadify/js/swfobject.js on lines 541..547

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 210.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  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

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                        function displayAltContent(obj) {
                            if (ua.ie && ua.win && obj.readyState != 4) {
                                // IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
                                // because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
                                var el = createElement("div");
                    Severity: Major
                    Found in public/uploadify/js/swfobject (2).js and 1 other location - About 7 hrs to fix
                    public/uploadify/js/swfobject.js on lines 361..381

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 192.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Severity
                    Category
                    Status
                    Source
                    Language