WordPress/WordPress

View on GitHub
wp-includes/js/plupload/moxie.js

Summary

Maintainability
F
1 mo
Test Coverage

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

;var MXI_DEBUG = false;
/**
 * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
 * v1.3.5
 *
Severity: Major
Found in wp-includes/js/plupload/moxie.js - About 2 wks to fix

    Function XMLHttpRequest has 365 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 wp-includes/js/plupload/moxie.js - About 1 day to fix

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

          function ExifParser(data) {
              var __super__, tags, tagDescs, offsets, idx, Tiff;
              
              BinaryReader.call(this, data);
      
      
      Severity: Major
      Found in wp-includes/js/plupload/moxie.js - About 1 day to fix

        Function HTML5Image has 293 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 wp-includes/js/plupload/moxie.js - About 1 day to fix

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

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

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

                var UAParser = (function (undefined) {
            
                    //////////////
                    // Constants
                    /////////////
            Severity: Major
            Found in wp-includes/js/plupload/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 wp-includes/js/plupload/moxie.js - About 1 day to fix

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

                    function XMLHttpRequest() {
                        var _status, _response, _iframe;
                
                        function cleanup(cb) {
                            var target = this, uid, form, inputs, i, hasFile = false;
                Severity: Major
                Found in wp-includes/js/plupload/moxie.js - About 6 hrs to fix

                  Function Runtime has 149 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function Runtime(options, type, caps, modeCaps, preferredMode) {
                          /**
                          Dispatched when runtime is initialized and ready.
                          Results in RuntimeInit on a connected component.
                  
                  
                  Severity: Major
                  Found in wp-includes/js/plupload/moxie.js - About 5 hrs to fix

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

                        function FileInput() {
                            var _uid, _mimes = [], _options;
                    
                            function addInput() {
                                var comp = this, I = comp.getRuntime(), shimContainer, browseButton, currForm, form, input, uid;
                    Severity: Major
                    Found in wp-includes/js/plupload/moxie.js - About 5 hrs to fix

                      Function EventTarget has 145 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function EventTarget() {
                              // hash of event listeners by object uid
                              var eventpool = {};
                                      
                              Basic.extend(this, {
                      Severity: Major
                      Found in wp-includes/js/plupload/moxie.js - About 5 hrs to fix

                        Function FileDrop has 135 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function FileDrop() {
                                var _files = [], _allowedExts = [], _options, _ruid;
                        
                                Basic.extend(this, {
                                    init: function(options) {
                        Severity: Major
                        Found in wp-includes/js/plupload/moxie.js - About 5 hrs to fix

                          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 wp-includes/js/plupload/moxie.js - About 4 hrs to fix

                            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 wp-includes/js/plupload/moxie.js - About 4 hrs to fix

                              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 wp-includes/js/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 wp-includes/js/plupload/moxie.js - About 4 hrs to fix

                                  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 wp-includes/js/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 wp-includes/js/plupload/moxie.js - About 3 hrs to fix

                                      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 wp-includes/js/plupload/moxie.js - About 3 hrs to fix

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

                                            return function RuntimeClient() {
                                                var runtime;
                                        
                                                Basic.extend(this, {
                                                    /**
                                        Severity: Major
                                        Found in wp-includes/js/plupload/moxie.js - About 3 hrs to fix

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

                                                  function addInput() {
                                                      var comp = this, I = comp.getRuntime(), shimContainer, browseButton, currForm, form, input, uid;
                                          
                                                      uid = Basic.guid('uid_');
                                          
                                          
                                          Severity: Major
                                          Found in wp-includes/js/plupload/moxie.js - About 3 hrs to fix

                                            Function embed has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                        embed: function(el, opts) {
                                                            var self = this
                                                            , runtime // this has to be outside of all the closures to contain proper runtime
                                                            ;
                                            
                                            
                                            Severity: Major
                                            Found in wp-includes/js/plupload/moxie.js - About 3 hrs to fix

                                              Function Transporter has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  function Transporter() {
                                                      var mod, _runtime, _data, _size, _pos, _chunk_size;
                                              
                                                      RuntimeClient.call(this);
                                              
                                              
                                              Severity: Major
                                              Found in wp-includes/js/plupload/moxie.js - About 3 hrs to fix

                                                Function Html5Runtime has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    function Html5Runtime(options) {
                                                        var I = this
                                                        , Test = Runtime.capTest
                                                        , True = Runtime.capTrue
                                                        ;
                                                Severity: Major
                                                Found in wp-includes/js/plupload/moxie.js - About 3 hrs to fix

                                                  Function init has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                              init: function(options) {
                                                                  var comp = this, I = comp.getRuntime(), input, shimContainer, mimes, browseButton, zIndex, top;
                                                  
                                                                  _options = options;
                                                  
                                                  
                                                  Severity: Major
                                                  Found in wp-includes/js/plupload/moxie.js - About 3 hrs to fix

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

                                                        function FileReader() {
                                                    
                                                            RuntimeClient.call(this);
                                                    
                                                            Basic.extend(this, {
                                                    Severity: Major
                                                    Found in wp-includes/js/plupload/moxie.js - About 3 hrs to fix

                                                      Function exec has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                                  function exec(runtime) {
                                                                      _xhr.bind('LoadStart', function(e) {
                                                                          _p('readyState', XMLHttpRequest.LOADING);
                                                                          self.dispatchEvent('readystatechange');
                                                      
                                                      
                                                      Severity: Major
                                                      Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                        Function version_compare has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                            function version_compare(v1, v2, operator) {
                                                              // From: http://phpjs.org/functions
                                                              // +      original by: Philippe Jausions (http://pear.php.net/user/jausions)
                                                              // +      original by: Aidan Lister (http://aidanlister.com/)
                                                              // + reimplemented by: Kankrelune (http://www.webfaktory.info/)
                                                        Severity: Major
                                                        Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                          Function Blob has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                              function Blob(ruid, blob) {
                                                          
                                                                  function _sliceDetached(start, end, type) {
                                                                      var blob, data = blobpool[this.uid];
                                                          
                                                          
                                                          Severity: Major
                                                          Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                            Function Html4Runtime has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                function Html4Runtime(options) {
                                                                    var I = this
                                                                    , Test = Runtime.capTest
                                                                    , True = Runtime.capTrue
                                                                    ;
                                                            Severity: Major
                                                            Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                              Function connectRuntime has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                          connectRuntime: function(options) {
                                                                              var comp = this, ruid;
                                                              
                                                                              function initialize(items) {
                                                                                  var type, constructor;
                                                              Severity: Major
                                                              Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                                Function extractTags has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                        function extractTags(IFD_offset, tags2extract) {
                                                                            var data = this;
                                                                            var length, i, tag, type, count, size, offset, value, values = [], hash = {};
                                                                            
                                                                            var types = {
                                                                Severity: Major
                                                                Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

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

                                                                      var can = (function() {
                                                                          var caps = {
                                                                                  define_property: (function() {
                                                                                      /* // currently too much extra code required, not exactly worth it
                                                                                      try { // as of IE8, getters/setters are supported only on DOM elements
                                                                  Severity: Major
                                                                  Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                                    Function dispatchEvent has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                                dispatchEvent: function(type) {
                                                                                    var uid, list, args, tmpEvt, evt = {}, result = true, undef;
                                                                                    
                                                                                    if (Basic.typeOf(type) !== 'string') {
                                                                                        // we can't use original object directly (because of Silverlight)
                                                                    Severity: Major
                                                                    Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                                      Function _downsize has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                              function _downsize(width, height, crop, preserveHeaders) {
                                                                                  var self = this
                                                                                  , scale
                                                                                  , mathFn
                                                                                  , x = 0
                                                                      Severity: Major
                                                                      Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                                        Function PNG has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                            function PNG(data) {
                                                                                var _br, _hm, _ep, _info;
                                                                        
                                                                                _br = new BinaryReader(data);
                                                                        
                                                                        
                                                                        Severity: Major
                                                                        Found in wp-includes/js/plupload/moxie.js - About 2 hrs to fix

                                                                          Function FormData has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                              function FormData() {
                                                                                  var _blob, _fields = [];
                                                                          
                                                                                  Basic.extend(this, {
                                                                                      /**
                                                                          Severity: Minor
                                                                          Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                            Function FileDrop has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                function FileDrop(options) {
                                                                                    if (MXI_DEBUG) {
                                                                                        Env.log("Instantiating FileDrop...");    
                                                                                    }
                                                                            
                                                                            
                                                                            Severity: Minor
                                                                            Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                          rgx : function () {
                                                                              
                                                                                              // loop through all regexes maps
                                                                                              for (var result, i = 0, j, k, p, q, matches, match, args = arguments; i < args.length; i += 2) {
                                                                              
                                                                              
                                                                              Severity: Minor
                                                                              Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                Function _rotateToOrientaion has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                        function _rotateToOrientaion(width, height, orientation) {
                                                                                            switch (orientation) {
                                                                                                case 5:
                                                                                                case 6:
                                                                                                case 7:
                                                                                Severity: Minor
                                                                                Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                  function render(type, quality) {
                                                                                                      var img = this;
                                                                                  
                                                                                                      // if possible, embed a canvas element directly
                                                                                                      if (Env.can('create_canvas')) {
                                                                                  Severity: Minor
                                                                                  Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                    Function initialize has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                                    function initialize(items) {
                                                                                                        var type, constructor;
                                                                                    
                                                                                                        // if we ran out of runtimes
                                                                                                        if (!items.length) {
                                                                                    Severity: Minor
                                                                                    Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                      Function createIframe has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                                      function createIframe() {
                                                                                                          var container = I.getShimContainer() || document.body
                                                                                                          , temp = document.createElement('div')
                                                                                                          ;
                                                                                      
                                                                                      
                                                                                      Severity: Minor
                                                                                      Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                        Function parseUrl has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                            var parseUrl = function(url, currentUrl) {
                                                                                                var key = ['source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'fragment']
                                                                                                , i = key.length
                                                                                                , ports = {
                                                                                                    http: 80,
                                                                                        Severity: Minor
                                                                                        Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                          Function getPos has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                              var getPos = function(node, root) {
                                                                                                  var x = 0, y = 0, parent, doc = document, nodeRect, rootRect;
                                                                                          
                                                                                                  node = node;
                                                                                                  root = root || doc.body;
                                                                                          Severity: Minor
                                                                                          Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                            Function FileReader has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                                function FileReader() {
                                                                                                    var _fr, _convertToBinary = false;
                                                                                            
                                                                                                    Basic.extend(this, {
                                                                                            
                                                                                            
                                                                                            Severity: Minor
                                                                                            Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                              Function ArrayBufferReader has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  function ArrayBufferReader(data) {
                                                                                                      var _dv = new DataView(data);
                                                                                              
                                                                                                      Basic.extend(this, {
                                                                                                          
                                                                                              Severity: Minor
                                                                                              Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                            setRequestHeader: function(header, value) {
                                                                                                                var uaHeaders = [ // these headers are controlled by the user agent
                                                                                                                        "accept-charset",
                                                                                                                        "accept-encoding",
                                                                                                                        "access-control-request-headers",
                                                                                                Severity: Minor
                                                                                                Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                  Function cleanup has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                          function cleanup(cb) {
                                                                                                              var target = this, uid, form, inputs, i, hasFile = false;
                                                                                                  
                                                                                                              if (!_iframe) {
                                                                                                                  return;
                                                                                                  Severity: Minor
                                                                                                  Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                    Function init has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                                init: function(options) {
                                                                                                                    var comp = this, dropZone;
                                                                                                    
                                                                                                                    _options = options;
                                                                                                                    _ruid = comp.ruid; // every dropped-in file should have a reference to the runtime
                                                                                                    Severity: Minor
                                                                                                    Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                                  getAsBinaryString: function(type, quality) {
                                                                                                                      // if image has not been modified, return the source right away
                                                                                                                      if (!_modified) {
                                                                                                                          // if image was not loaded from binary string
                                                                                                                          if (!_binStr) {
                                                                                                      Severity: Minor
                                                                                                      Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                                    send: function(data, options) {                    
                                                                                                                        if (Basic.typeOf(options) === 'string') {
                                                                                                                            _options = { ruid: options };
                                                                                                                        } else if (!options) {
                                                                                                                            _options = {};
                                                                                                        Severity: Minor
                                                                                                        Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                                      init: function(options) {
                                                                                                                          var comp = this, I = comp.getRuntime(), shimContainer;
                                                                                                          
                                                                                                                          // figure out accept string
                                                                                                                          _options = options;
                                                                                                          Severity: Minor
                                                                                                          Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                                    DOMException: (function() {
                                                                                                                        var namecodes = {
                                                                                                                            INDEX_SIZE_ERR: 1,
                                                                                                                            DOMSTRING_SIZE_ERR: 2,
                                                                                                                            HIERARCHY_REQUEST_ERR: 3,
                                                                                                            Severity: Minor
                                                                                                            Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                                      function _load(src) {
                                                                                                                          var srcType = Basic.typeOf(src);
                                                                                                              
                                                                                                                          try {
                                                                                                                              // if source is Image
                                                                                                              Severity: Minor
                                                                                                              Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                Function removeEvent has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                    var removeEvent = function(obj, name, callback) {
                                                                                                                        var type, undef;
                                                                                                                        
                                                                                                                        name = name.toLowerCase();
                                                                                                                        
                                                                                                                Severity: Minor
                                                                                                                Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                  Function onReadyStateChange has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                                      _xhr.onreadystatechange = function onReadyStateChange() {
                                                                                                                                          
                                                                                                                                          // fake Level 2 events
                                                                                                                                          switch (_xhr.readyState) {
                                                                                                                                              
                                                                                                                  Severity: Minor
                                                                                                                  Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                    Function open has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                                open: function(method, url, async, user, password) {
                                                                                                                                    var urlp;
                                                                                                                                    
                                                                                                                                    // first two arguments are required
                                                                                                                                    if (!method || !url) {
                                                                                                                    Severity: Minor
                                                                                                                    Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                      Function _read has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                              function _read(op, blob) {
                                                                                                                                  var self = this;            
                                                                                                                      
                                                                                                                                  this.trigger('loadstart');
                                                                                                                      
                                                                                                                      
                                                                                                                      Severity: Minor
                                                                                                                      Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                        Function addEvent has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                            var addEvent = function(obj, name, callback, key) {
                                                                                                                                var func, events;
                                                                                                                                            
                                                                                                                                name = name.toLowerCase();
                                                                                                                        
                                                                                                                        
                                                                                                                        Severity: Minor
                                                                                                                        Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                          Function atob has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              var atob = function(data, utf8) {
                                                                                                                                  if (typeof(window.atob) === 'function') {
                                                                                                                                      return utf8 ? utf8_decode(window.atob(data)) : window.atob(data);
                                                                                                                                  }
                                                                                                                          
                                                                                                                          
                                                                                                                          Severity: Minor
                                                                                                                          Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                            Function init has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                        init: function() {
                                                                                                                                            self.bind('RuntimeInit', function(e, runtime) {
                                                                                                                                                self.ruid = runtime.uid;
                                                                                                                                                self.shimid = runtime.shimid;
                                                                                                                            
                                                                                                                            
                                                                                                                            Severity: Minor
                                                                                                                            Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                              Function getMode has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  Runtime.getMode = function(modeCaps, requiredCaps, defaultMode) {
                                                                                                                                      var mode = null;
                                                                                                                              
                                                                                                                                      if (Basic.typeOf(defaultMode) === 'undefined') { // only if not specified
                                                                                                                                          defaultMode = 'browser';
                                                                                                                              Severity: Minor
                                                                                                                              Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                                Function renderImageToCanvas has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                    function renderImageToCanvas(img, canvas, options) {
                                                                                                                                        var iw = img.naturalWidth, ih = img.naturalHeight;
                                                                                                                                        var width = options.width, height = options.height;
                                                                                                                                        var x = options.x || 0, y = options.y || 0;
                                                                                                                                        var ctx = canvas.getContext('2d');
                                                                                                                                Severity: Minor
                                                                                                                                Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                                  Function getResponse has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                              getResponse: function(responseType) {
                                                                                                                                                  var I = this.getRuntime();
                                                                                                                                  
                                                                                                                                                  try {
                                                                                                                                                      switch (responseType) {
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                                    Function downsize has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                                downsize: function(opts) {
                                                                                                                                                    var defaults = {
                                                                                                                                                        width: this.width,
                                                                                                                                                        height: this.height,
                                                                                                                                                        type: this.type || 'image/jpeg',
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                                      Function UTF16StringReader has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                          function UTF16StringReader(data) {
                                                                                                                                              Basic.extend(this, {
                                                                                                                                                  
                                                                                                                                                  readByteAt: function(idx) {
                                                                                                                                                      return data.charCodeAt(idx);
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                                        Function btoa has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                            var btoa = function(data, utf8) {
                                                                                                                                                if (utf8) {
                                                                                                                                                    data = utf8_encode(data);
                                                                                                                                                }
                                                                                                                                        
                                                                                                                                        
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                                          Function setTag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                  function setTag(ifd, tag, value) {
                                                                                                                                                      var offset, length, tagOffset, valueOffset = 0;
                                                                                                                                          
                                                                                                                                                      // If tag name passed translate into hex key
                                                                                                                                                      if (typeof(tag) === 'string') {
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

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

                                                                                                                                                    var UAParser = function (uastring) {
                                                                                                                                            
                                                                                                                                                        var ua = uastring || ((window && window.navigator && window.navigator.userAgent) ? window.navigator.userAgent : EMPTY);
                                                                                                                                            
                                                                                                                                                        this.getBrowser = function () {
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in wp-includes/js/plupload/moxie.js - About 1 hr to fix

                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                              Open

                                                                                                                                                                  if (obj.hasOwnProperty(key)) {
                                                                                                                                                                      if (callback(obj[key], key) === false) {
                                                                                                                                                                          return;
                                                                                                                                                                      }
                                                                                                                                                                  }
                                                                                                                                              Severity: Major
                                                                                                                                              Found in wp-includes/js/plupload/moxie.js - About 45 mins to fix

                                                                                                                                                Function _drawToCanvas has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                        function _drawToCanvas(img, canvas, x, y, w, h) {
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in wp-includes/js/plupload/moxie.js - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                                  if (typeof(q) === OBJ_TYPE && q.length > 0) {
                                                                                                                                                                                      if (q.length == 2) {
                                                                                                                                                                                          if (typeof(q[1]) == FUNC_TYPE) {
                                                                                                                                                                                              // assign modified match
                                                                                                                                                                                              result[q[0]] = q[1].call(this, match);
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in wp-includes/js/plupload/moxie.js - About 45 mins to fix

                                                                                                                                                    Function Runtime has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                        function Runtime(options, type, caps, modeCaps, preferredMode) {
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in wp-includes/js/plupload/moxie.js - About 35 mins to fix

                                                                                                                                                      Function open has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                                  open: function(method, url, async, user, password) {
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in wp-includes/js/plupload/moxie.js - About 35 mins to fix

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

                                                                                                                                                                        summon_file_dialog: function() { // yeah... some dirty sniffing here...
                                                                                                                                                                            return I.can('select_file') && (
                                                                                                                                                                                (Env.browser === 'Firefox' && Env.verComp(Env.version, 4, '>=')) ||
                                                                                                                                                                                (Env.browser === 'Opera' && Env.verComp(Env.version, 12, '>=')) ||
                                                                                                                                                                                (Env.browser === 'IE' && Env.verComp(Env.version, 10, '>=')) ||
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 5 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 9281..9288

                                                                                                                                                        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 139.

                                                                                                                                                        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

                                                                                                                                                                    summon_file_dialog: function() { // yeah... some dirty sniffing here...
                                                                                                                                                                        return I.can('select_file') && (
                                                                                                                                                                            (Env.browser === 'Firefox' && Env.verComp(Env.version, 4, '>=')) ||
                                                                                                                                                                            (Env.browser === 'Opera' && Env.verComp(Env.version, 12, '>=')) ||
                                                                                                                                                                            (Env.browser === 'IE' && Env.verComp(Env.version, 10, '>=')) ||
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 5 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 6264..6271

                                                                                                                                                        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 139.

                                                                                                                                                        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

                                                                                                                                                                RuntimeError: (function() {
                                                                                                                                                                    var namecodes = {
                                                                                                                                                                        NOT_INIT_ERR: 1,
                                                                                                                                                                        NOT_SUPPORTED_ERR: 9,
                                                                                                                                                                        JS_ERR: 4
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 4 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 1704..1721

                                                                                                                                                        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 129.

                                                                                                                                                        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

                                                                                                                                                                ImageError: (function() {
                                                                                                                                                                    var namecodes = {
                                                                                                                                                                        WRONG_FORMAT: 1,
                                                                                                                                                                        MAX_RESOLUTION_ERR: 2,
                                                                                                                                                                        INVALID_META_ERR: 3
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 4 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 1670..1686

                                                                                                                                                        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 129.

                                                                                                                                                        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

                                                                                                                                                                    'Flash': {
                                                                                                                                                                        0x0000: 'Flash did not fire',
                                                                                                                                                                        0x0001: 'Flash fired',
                                                                                                                                                                        0x0005: 'Strobe return light not detected',
                                                                                                                                                                        0x0007: 'Strobe return light detected',
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 3 hrs to fix
                                                                                                                                                        wp-includes/js/dist/compose.js on lines 1119..1142

                                                                                                                                                        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 112.

                                                                                                                                                        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

                                                                                                                                                                    filter_by_extension: Test(function() { // if you know how to feature-detect this, please suggest
                                                                                                                                                                        return (Env.browser === 'Chrome' && Env.verComp(Env.version, 28, '>=')) || 
                                                                                                                                                                            (Env.browser === 'IE' && Env.verComp(Env.version, 10, '>=')) || 
                                                                                                                                                                            (Env.browser === 'Safari' && Env.verComp(Env.version, 7, '>='));
                                                                                                                                                                    }()),
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 3 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 6226..6230

                                                                                                                                                        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 108.

                                                                                                                                                        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

                                                                                                                                                                        filter_by_extension: Test(function() { // if you know how to feature-detect this, please suggest
                                                                                                                                                                            return (Env.browser === 'Chrome' && Env.verComp(Env.version, 28, '>=')) || 
                                                                                                                                                                                (Env.browser === 'IE' && Env.verComp(Env.version, 10, '>=')) || 
                                                                                                                                                                                (Env.browser === 'Safari' && Env.verComp(Env.version, 7, '>='));
                                                                                                                                                                        }()),
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 3 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 9251..9255

                                                                                                                                                        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 108.

                                                                                                                                                        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

                                                                                                                                                                Basic.extend(this, {
                                                                                                                                                                    init : function() {
                                                                                                                                                                        this.trigger("Init");
                                                                                                                                                                    },
                                                                                                                                                        
                                                                                                                                                        
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 2 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 6280..6292

                                                                                                                                                        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 85.

                                                                                                                                                        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

                                                                                                                                                                Basic.extend(this, {
                                                                                                                                                        
                                                                                                                                                                    init : function() {
                                                                                                                                                                        this.trigger("Init");
                                                                                                                                                                    },
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 2 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 9296..9307

                                                                                                                                                        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 85.

                                                                                                                                                        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

                                                                                                                                                                EventException: (function() {
                                                                                                                                                                    function EventException(code) {
                                                                                                                                                                        this.code = code;
                                                                                                                                                                        this.name = 'EventException';
                                                                                                                                                                    }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 2 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 1688..1702

                                                                                                                                                        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 80.

                                                                                                                                                        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

                                                                                                                                                                OperationNotAllowedException: (function() {
                                                                                                                                                                    
                                                                                                                                                                    function OperationNotAllowedException(code) {
                                                                                                                                                                        this.code = code;
                                                                                                                                                                        this.name = 'OperationNotAllowedException';
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 2 hrs to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 1786..1799

                                                                                                                                                        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 80.

                                                                                                                                                        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

                                                                                                                                                                    getAsBlob: function(type, quality) {
                                                                                                                                                                        if (!this.size) {
                                                                                                                                                                            throw new x.DOMException(x.DOMException.INVALID_STATE_ERR);
                                                                                                                                                                        }
                                                                                                                                                                        return this.exec('Image', 'getAsBlob', type || 'image/jpeg', quality || 90);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 1 hr to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 5857..5862

                                                                                                                                                        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 68.

                                                                                                                                                        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

                                                                                                                                                                    getAsDataURL: function(type, quality) {
                                                                                                                                                                        if (!this.size) {
                                                                                                                                                                            throw new x.DOMException(x.DOMException.INVALID_STATE_ERR);
                                                                                                                                                                        }
                                                                                                                                                                        return this.exec('Image', 'getAsDataURL', type || 'image/jpeg', quality || 90);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 1 hr to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 5841..5846

                                                                                                                                                        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 68.

                                                                                                                                                        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

                                                                                                                                                                    read: function() {
                                                                                                                                                                        try {
                                                                                                                                                                            return ExifParser.prototype.read.apply(this, arguments);
                                                                                                                                                                        } catch (ex) {
                                                                                                                                                                            throw new x.ImageError(x.ImageError.INVALID_META_ERR);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 1 hr to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 7948..7954

                                                                                                                                                        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 63.

                                                                                                                                                        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

                                                                                                                                                                    write: function() {
                                                                                                                                                                        try {
                                                                                                                                                                            return ExifParser.prototype.write.apply(this, arguments);
                                                                                                                                                                        } catch (ex) {
                                                                                                                                                                            throw new x.ImageError(x.ImageError.INVALID_META_ERR);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 1 hr to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 7939..7945

                                                                                                                                                        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 63.

                                                                                                                                                        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

                                                                                                                                                                    for (var i = 0, length = array.length; i < length; i++) {
                                                                                                                                                                        if (array[i] === needle) {
                                                                                                                                                                            return i;
                                                                                                                                                                        }
                                                                                                                                                                    }
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 45 mins to fix
                                                                                                                                                        wp-includes/js/codemirror/csslint.js on lines 8123..8127

                                                                                                                                                        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 50.

                                                                                                                                                        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

                                                                                                                                                                    var namecodes = {
                                                                                                                                                                        NOT_FOUND_ERR: 1,
                                                                                                                                                                        SECURITY_ERR: 2,
                                                                                                                                                                        ABORT_ERR: 3,
                                                                                                                                                                        NOT_READABLE_ERR: 4,
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 35 mins to fix
                                                                                                                                                        wp-includes/js/backbone.js on lines 1554..1555

                                                                                                                                                        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 47.

                                                                                                                                                        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

                                                                                                                                                                var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,
                                                                                                                                                                    ac = 0,
                                                                                                                                                                    enc = "",
                                                                                                                                                                    tmp_arr = [];
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 35 mins to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 3286..3289

                                                                                                                                                        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 47.

                                                                                                                                                        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

                                                                                                                                                                var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,
                                                                                                                                                                    ac = 0,
                                                                                                                                                                    dec = "",
                                                                                                                                                                    tmp_arr = [];
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 35 mins to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 3354..3357

                                                                                                                                                        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 47.

                                                                                                                                                        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 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                                            version : {
                                                                                                                                                                                '1.0'   : '/8',
                                                                                                                                                                                '1.2'   : '/1',
                                                                                                                                                                                '1.3'   : '/3',
                                                                                                                                                                                '2.0'   : '/412',
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 2 other locations - About 35 mins to fix
                                                                                                                                                        wp-admin/js/customize-nav-menus.js on lines 157..166
                                                                                                                                                        wp-includes/js/media-views.js on lines 2903..2912

                                                                                                                                                        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 46.

                                                                                                                                                        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

                                                                                                                                                                        Events.addEvent(Dom.get(_options.container), 'mouseup', function() {
                                                                                                                                                                            comp.trigger('mouseup');
                                                                                                                                                                        }, comp.uid);
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 35 mins to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 9504..9506

                                                                                                                                                        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 46.

                                                                                                                                                        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

                                                                                                                                                                            Events.addEvent(Dom.get(options.container), 'mouseup', function() {
                                                                                                                                                                                comp.trigger('mouseup');
                                                                                                                                                                            }, comp.uid);
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in wp-includes/js/plupload/moxie.js and 1 other location - About 35 mins to fix
                                                                                                                                                        wp-includes/js/plupload/moxie.js on lines 6570..6572

                                                                                                                                                        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 46.

                                                                                                                                                        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

                                                                                                                                                        There are no issues that match your filters.

                                                                                                                                                        Category
                                                                                                                                                        Status