mangroveorg/datawinners

View on GitHub
datawinners/media/admin/js/jquery.js

Summary

Maintainability
F
1 mo
Test Coverage

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

/*!
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
Severity: Major
Found in datawinners/media/admin/js/jquery.js - About 1 wk to fix

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

        ajax: function( origSettings ) {
            var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings);
            
            var jsonp, status, data,
                callbackContext = origSettings && origSettings.context || s,
    Severity: Major
    Found in datawinners/media/admin/js/jquery.js - About 1 day to fix

      Consider simplifying this complex logical expression.
      Open

              if ( event.pageX == null && event.clientX != null ) {
                  var doc = document.documentElement, body = document.body;
                  event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
                  event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
              }
      Severity: Critical
      Found in datawinners/media/admin/js/jquery.js - About 4 hrs to fix

        Function Sizzle has 95 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var Sizzle = function(selector, context, results, seed) {
            results = results || [];
            var origContext = context = context || document;
        
            if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
        Severity: Major
        Found in datawinners/media/admin/js/jquery.js - About 3 hrs to fix

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

              remove: function( elem, types, handler, pos ) {
                  // don't do events on text and comment nodes
                  if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                      return;
                  }
          Severity: Major
          Found in datawinners/media/admin/js/jquery.js - About 3 hrs to fix

            Consider simplifying this complex logical expression.
            Open

            if ( "getBoundingClientRect" in document.documentElement ) {
                jQuery.fn.offset = function( options ) {
                    var elem = this[0];
            
                    if ( options ) { 
            Severity: Critical
            Found in datawinners/media/admin/js/jquery.js - About 3 hrs to fix

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

                  trigger: function( event, data, elem /*, bubbling */ ) {
                      // Event object or event type
                      var type = event.type || event,
                          bubbling = arguments[3];
              
              
              Severity: Major
              Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                    add: function( elem, types, handler, data ) {
                        if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
                            return;
                        }
                
                
                Severity: Major
                Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                      init: function( selector, context ) {
                          var match, elem, ret, doc;
                  
                          // Handle $(""), $(null), or $(undefined)
                          if ( !selector ) {
                  Severity: Major
                  Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                    Sizzle.filter = function(expr, set, inplace, not){
                        var old = expr, result = [], curLoop = set, match, anyFound,
                            isXMLFilter = set && set[0] && isXML(set[0]);
                    
                        while ( expr && set.length ) {
                    Severity: Major
                    Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

                      Function clean has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          clean: function( elems, context, fragment, scripts ) {
                              context = context || document;
                      
                              // !context.createElement fails in IE with an error but returns typeof 'object'
                              if ( typeof context.createElement === "undefined" ) {
                      Severity: Major
                      Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                            val: function( value ) {
                                if ( value === undefined ) {
                                    var elem = this[0];
                        
                                    if ( elem ) {
                        Severity: Major
                        Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                              animate: function( prop, speed, easing, callback ) {
                                  var optall = jQuery.speed(speed, easing, callback);
                          
                                  if ( jQuery.isEmptyObject( prop ) ) {
                                      return this.each( optall.complete );
                          Severity: Major
                          Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                                attr: function( elem, name, value, pass ) {
                                    // don't set attributes on text and comment nodes
                                    if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
                                        return undefined;
                                    }
                            Severity: Major
                            Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                                  domManip: function( args, table, callback ) {
                                      var results, first, value = args[0], scripts = [], fragment, parent;
                              
                                      // We can't cloneNode fragments that contain checked, in WebKit
                                      if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
                              Severity: Minor
                              Found in datawinners/media/admin/js/jquery.js - About 2 hrs to fix

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

                                    jQuery.fn.offset = function( options ) {
                                        var elem = this[0];
                                
                                        if ( options ) { 
                                            return this.each(function( i ) {
                                Severity: Minor
                                Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                  function liveHandler( event ) {
                                      var stop, elems = [], selectors = [], args = arguments,
                                          related, match, handleObj, elem, j, i, l, data,
                                          events = jQuery.data( this, "events" );
                                  
                                  
                                  Severity: Minor
                                  Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                            CHILD: function(elem, match){
                                                var type = match[1], node = elem;
                                                switch (type) {
                                                    case 'only':
                                                    case 'first':
                                    Severity: Minor
                                    Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                          curCSS: function( elem, name, force ) {
                                              var ret, style = elem.style, filter;
                                      
                                              // IE uses filters for opacity
                                              if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
                                      Severity: Minor
                                      Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) {
                                                    // The request was aborted
                                                    if ( !xhr || xhr.readyState === 0 || isTimeout === "abort" ) {
                                                        // Opera doesn't call onreadystatechange before this point
                                                        // so we simulate the call
                                        Severity: Minor
                                        Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

                                          Function step has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              step: function( gotoEnd ) {
                                                  var t = now(), done = true;
                                          
                                                  if ( gotoEnd || t >= this.options.duration + this.startTime ) {
                                                      this.now = this.end;
                                          Severity: Minor
                                          Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                load: function( url, params, callback ) {
                                                    if ( typeof url !== "string" ) {
                                                        return _load.call( this, url );
                                            
                                                    // Don't do a request if no elements are being requested
                                            Severity: Minor
                                            Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                  jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
                                                      var type, i = 0, match, namespaces, preType,
                                                          selector = origSelector || this.selector,
                                                          context = origSelector ? this : jQuery( this.context );
                                              
                                              
                                              Severity: Minor
                                              Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                    param: function( a, traditional ) {
                                                        var s = [];
                                                        
                                                        // Set traditional to true for jQuery <= 1.3.2 behavior.
                                                        if ( traditional === undefined ) {
                                                Severity: Minor
                                                Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                      closest: function( selectors, context ) {
                                                          if ( jQuery.isArray( selectors ) ) {
                                                              var ret = [], cur = this[0], match, matches = {}, selector;
                                                  
                                                              if ( cur && selectors.length ) {
                                                  Severity: Minor
                                                  Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

                                                    Consider simplifying this complex logical expression.
                                                    Open

                                                                if ( match[1] === "nth" ) {
                                                                    // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
                                                                    var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
                                                                        match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
                                                                        !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
                                                    Severity: Critical
                                                    Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                          fix: function( event ) {
                                                              if ( event[ expando ] ) {
                                                                  return event;
                                                              }
                                                      
                                                      
                                                      Severity: Minor
                                                      Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                            handle: function( event ) {
                                                                var all, handlers, namespaces, namespace, events;
                                                        
                                                                event = arguments[0] = jQuery.event.fix( event || window.event );
                                                                event.currentTarget = this;
                                                        Severity: Minor
                                                        Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                          jQuery.extend = jQuery.fn.extend = function() {
                                                              // copy reference to target object
                                                              var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy;
                                                          
                                                              // Handle a deep copy situation
                                                          Severity: Minor
                                                          Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                            function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                                                                for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                                                                    var elem = checkSet[i];
                                                                    if ( elem ) {
                                                                        elem = elem[dir];
                                                            Severity: Minor
                                                            Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                                  each: function( object, callback, args ) {
                                                                      var name, i = 0,
                                                                          length = object.length,
                                                                          isObj = length === undefined || jQuery.isFunction(object);
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

                                                                Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    html: function( value ) {
                                                                        if ( value === undefined ) {
                                                                            return this[0] && this[0].nodeType === 1 ?
                                                                                this[0].innerHTML.replace(rinlinejQuery, "") :
                                                                                null;
                                                                Severity: Minor
                                                                Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                                          ATTR: function(elem, match){
                                                                              var name = match[1],
                                                                                  result = Expr.attrHandle[ name ] ?
                                                                                      Expr.attrHandle[ name ]( elem ) :
                                                                                      elem[ name ] != null ?
                                                                  Severity: Minor
                                                                  Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

                                                                    Function show has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        show: function( speed, callback ) {
                                                                            if ( speed || speed === 0) {
                                                                                return this.animate( genFx("show", 3), speed, callback);
                                                                    
                                                                            } else {
                                                                    Severity: Minor
                                                                    Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                                          style: function( elem, name, value ) {
                                                                              // don't set styles on text and comment nodes
                                                                              if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
                                                                                  return undefined;
                                                                              }
                                                                      Severity: Minor
                                                                      Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                                            addClass: function( value ) {
                                                                                if ( jQuery.isFunction(value) ) {
                                                                                    return this.each(function(i) {
                                                                                        var self = jQuery(this);
                                                                                        self.addClass( value.call(this, i, self.attr("class")) );
                                                                        Severity: Minor
                                                                        Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

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

                                                                              css: function( elem, name, force, extra ) {
                                                                                  if ( name === "width" || name === "height" ) {
                                                                                      var val, props = cssShow, which = name === "width" ? cssWidth : cssHeight;
                                                                          
                                                                                      function getWH() {
                                                                          Severity: Minor
                                                                          Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

                                                                            Consider simplifying this complex logical expression.
                                                                            Open

                                                                                if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
                                                                                    !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
                                                                            
                                                                                    cacheable = true;
                                                                                    cacheresults = jQuery.fragments[ args[0] ];
                                                                            Severity: Major
                                                                            Found in datawinners/media/admin/js/jquery.js - About 1 hr to fix

                                                                              Avoid deeply nested control flow statements.
                                                                              Open

                                                                                          if ( a == b ) {
                                                                                              hasDuplicate = true;
                                                                                          }
                                                                              Severity: Major
                                                                              Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

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

                                                                                function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                                                                                Severity: Minor
                                                                                Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                  Avoid deeply nested control flow statements.
                                                                                  Open

                                                                                                          for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                              if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
                                                                                                                  setClass += " " + classNames[c];
                                                                                                              }
                                                                                                          }
                                                                                  Severity: Major
                                                                                  Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                            if ( option.selected ) {
                                                                                                                // Get the specifc value for the option
                                                                                                                value = jQuery(option).val();
                                                                                    
                                                                                                                // We don't need an array for one selects
                                                                                    Severity: Major
                                                                                    Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                      Avoid deeply nested control flow statements.
                                                                                      Open

                                                                                                              if ( display === "none" ) {
                                                                                                                  display = "block";
                                                                                                              }
                                                                                      Severity: Major
                                                                                      Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

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

                                                                                                CLASS: function(match, curLoop, inplace, result, not, isXML){
                                                                                        Severity: Minor
                                                                                        Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                          Avoid deeply nested control flow statements.
                                                                                          Open

                                                                                                              if ( !inplace ) {
                                                                                                                  curLoop = result;
                                                                                                              }
                                                                                          Severity: Major
                                                                                          Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                            Avoid deeply nested control flow statements.
                                                                                            Open

                                                                                                                if ( !anyFound ) {
                                                                                                                    return [];
                                                                                                                }
                                                                                            Severity: Major
                                                                                            Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                                  if ( typeof cur !== "string" ) {
                                                                                                                      if ( elem === cur ) {
                                                                                                                          match = true;
                                                                                                                          break;
                                                                                                                      }
                                                                                              Severity: Major
                                                                                              Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

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

                                                                                                function access( elems, key, value, exec, fn, pass ) {
                                                                                                Severity: Minor
                                                                                                Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                  Avoid deeply nested control flow statements.
                                                                                                  Open

                                                                                                                      if ( !match ) {
                                                                                                                          anyFound = found = true;
                                                                                                                      } else if ( match === true ) {
                                                                                                                          continue;
                                                                                                                      }
                                                                                                  Severity: Major
                                                                                                  Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                    Avoid deeply nested control flow statements.
                                                                                                    Open

                                                                                                                            if ( ret[r] === ret[n] ) {
                                                                                                                                ret.splice(n--, 1);
                                                                                                                                break;
                                                                                                                            }
                                                                                                    Severity: Major
                                                                                                    Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                              if ( elem.id !== match[2] ) {
                                                                                                                                  return rootjQuery.find( selector );
                                                                                                                              }
                                                                                                      Severity: Major
                                                                                                      Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                                if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                                                                                                    tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                                                                                                }
                                                                                                        Severity: Major
                                                                                                        Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                          Avoid deeply nested control flow statements.
                                                                                                          Open

                                                                                                                                  for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                      className = className.replace(" " + classNames[c] + " ", " ");
                                                                                                                                  }
                                                                                                          Severity: Major
                                                                                                          Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                                if ( !isXML ) {
                                                                                                                                    elem.sizcache = doneName;
                                                                                                                                    elem.sizset = i;
                                                                                                                                }
                                                                                                            Severity: Major
                                                                                                            Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                                  for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
                                                                                                                                      if ( item ) {
                                                                                                                                          found = filter( item, match, i, curLoop );
                                                                                                                                          var pass = not ^ !!found;
                                                                                                              
                                                                                                              
                                                                                                              Severity: Major
                                                                                                              Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                                        if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
                                                                                                                                            ret.push({ selector: selector, elem: cur });
                                                                                                                                            delete matches[selector];
                                                                                                                                        }
                                                                                                                Severity: Major
                                                                                                                Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

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

                                                                                                                          ATTR: function(match, curLoop, inplace, result, not, isXML){
                                                                                                                  Severity: Minor
                                                                                                                  Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                                            if ( pos == null ) {
                                                                                                                                                eventType.splice( j--, 1 );
                                                                                                                                            }
                                                                                                                    Severity: Major
                                                                                                                    Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                      Open

                                                                                                                                              if ( special.remove ) {
                                                                                                                                                  special.remove.call( elem, handleObj );
                                                                                                                                              }
                                                                                                                      Severity: Major
                                                                                                                      Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                        Open

                                                                                                                                                if ( ret === false ) {
                                                                                                                                                    event.preventDefault();
                                                                                                                                                    event.stopPropagation();
                                                                                                                                                }
                                                                                                                        Severity: Major
                                                                                                                        Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

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

                                                                                                                          function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                                                                                                                          Severity: Minor
                                                                                                                          Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                            Open

                                                                                                                                                    if ( jQuery.isPlainObject( context ) ) {
                                                                                                                                                        selector = [ document.createElement( ret[1] ) ];
                                                                                                                                                        jQuery.fn.attr.call( selector, context, true );
                                                                                                                            
                                                                                                                                                    } else {
                                                                                                                            Severity: Major
                                                                                                                            Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                              Open

                                                                                                                                                      if ( special[ type ] ) {
                                                                                                                                                          jQuery.event.remove( elem, type );
                                                                                                                              
                                                                                                                                                      } else {
                                                                                                                                                          removeEvent( elem, type, data.handle );
                                                                                                                              Severity: Major
                                                                                                                              Found in datawinners/media/admin/js/jquery.js - About 45 mins to fix

                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                Open

                                                                                                                                            if ( (!special._default || special._default.call( elem, event ) === false) && 
                                                                                                                                                !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
                                                                                                                                
                                                                                                                                                try {
                                                                                                                                                    if ( target[ type ] ) {
                                                                                                                                Severity: Major
                                                                                                                                Found in datawinners/media/admin/js/jquery.js - About 40 mins to fix

                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                  Open

                                                                                                                                          if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                                                                                                                                                  Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
                                                                                                                                              var ret = Sizzle.find( parts.shift(), context, contextXML );
                                                                                                                                              context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0];
                                                                                                                                          }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in datawinners/media/admin/js/jquery.js - About 40 mins to fix

                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                    Open

                                                                                                                                            if ( s.dataType === "json" && (s.data && jsre.test(s.data) || jsre.test(s.url)) ) {
                                                                                                                                                jsonp = s.jsonpCallback || ("jsonp" + jsc++);
                                                                                                                                    
                                                                                                                                                // Replace the =? sequence both in the query string and the data
                                                                                                                                                if ( s.data ) {
                                                                                                                                    Severity: Major
                                                                                                                                    Found in datawinners/media/admin/js/jquery.js - About 40 mins to fix

                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                      Open

                                                                                                                                      if ( jQuery.expr && jQuery.expr.filters ) {
                                                                                                                                          jQuery.expr.filters.hidden = function( elem ) {
                                                                                                                                              var width = elem.offsetWidth, height = elem.offsetHeight,
                                                                                                                                                  skip = elem.nodeName.toLowerCase() === "tr";
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      Severity: Major
                                                                                                                                      Found in datawinners/media/admin/js/jquery.js - About 40 mins to fix

                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                        Open

                                                                                                                                                        if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
                                                                                                                                                            (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
                                                                                                                                                            type === "select-multiple" ) {
                                                                                                                                                            return testChange.call( this, e );
                                                                                                                                                        }
                                                                                                                                        Severity: Major
                                                                                                                                        Found in datawinners/media/admin/js/jquery.js - About 40 mins to fix

                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                          Open

                                                                                                                                                  } else if ( typeof value === "string" && !rnocache.test( value ) &&
                                                                                                                                                      (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
                                                                                                                                                      !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
                                                                                                                                          
                                                                                                                                                      value = value.replace(rxhtmlTag, fcloseTag);
                                                                                                                                          Severity: Major
                                                                                                                                          Found in datawinners/media/admin/js/jquery.js - About 40 mins to fix

                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                            Open

                                                                                                                                                            if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) {
                                                                                                                                                                var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src
                                                                                                                                                                    : jQuery.isArray(copy) ? [] : {};
                                                                                                                                            
                                                                                                                                                                // Never move original objects, clone them
                                                                                                                                            Severity: Major
                                                                                                                                            Found in datawinners/media/admin/js/jquery.js - About 40 mins to fix

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

                                                                                                                                                      PSEUDO: function(match, curLoop, inplace, result, not){
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in datawinners/media/admin/js/jquery.js - About 35 mins to fix

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                                    return elem.getAttribute("value") === null ? "on" : elem.value;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                  Open

                                                                                                                                                                  return elem.style.cssText;
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                    Open

                                                                                                                                                                return attr === null ? undefined : attr;
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                      Open

                                                                                                                                                              return jQuery.style( elem, name, value );
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                        Open

                                                                                                                                                                return this.each(function(i) {
                                                                                                                                                                    var self = jQuery(this), val = value;
                                                                                                                                                        
                                                                                                                                                                    if ( this.nodeType !== 1 ) {
                                                                                                                                                                        return;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                          Open

                                                                                                                                                                          return (context || rootjQuery).find( selector );
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                            Open

                                                                                                                                                                                        return rootjQuery.find( selector );
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                              Open

                                                                                                                                                                              return elem[ name ];
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                Open

                                                                                                                                                                                    return this;
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                  Open

                                                                                                                                                                                          return diff === 0;
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                    Open

                                                                                                                                                                                    return jQuery.merge( this, selector );
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                      Open

                                                                                                                                                                                  return rootjQuery.ready( selector );
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                        Open

                                                                                                                                                                                        return jQuery( context ).find( selector );
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                          Open

                                                                                                                                                                                          return (elem.value || "").replace(rreturn, "");
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                            Open

                                                                                                                                                                                    return jQuery.makeArray( selector, this );
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                              Open

                                                                                                                                                                                          return undefined;
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                Open

                                                                                                                                                                                                        return true;
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                  Open

                                                                                                                                                                                                          return ( diff % first === 0 && diff / first >= 0 );
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in datawinners/media/admin/js/jquery.js - About 30 mins to fix

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

                                                                                                                                                                                        wrapInner: function( html ) {
                                                                                                                                                                                            if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                return this.each(function(i) {
                                                                                                                                                                                                    jQuery(this).wrapInner( html.call(this, i) );
                                                                                                                                                                                                });
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 6022..6040

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                            "~": function(checkSet, part, isXML){
                                                                                                                                                                                                var doneName = done++, checkFn = dirCheck;
                                                                                                                                                                                    
                                                                                                                                                                                                if ( typeof part === "string" && !/\W/.test(part) ) {
                                                                                                                                                                                                    var nodeCheck = part = part.toLowerCase();
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 2981..2990

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                            "": function(checkSet, part, isXML){
                                                                                                                                                                                                var doneName = done++, checkFn = dirCheck;
                                                                                                                                                                                    
                                                                                                                                                                                                if ( typeof part === "string" && !/\W/.test(part) ) {
                                                                                                                                                                                                    var nodeCheck = part = part.toLowerCase();
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 2991..3000

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                    if ( jQuery.expr && jQuery.expr.filters ) {
                                                                                                                                                                                        jQuery.expr.filters.animated = function( elem ) {
                                                                                                                                                                                            return jQuery.grep(jQuery.timers, function( fn ) {
                                                                                                                                                                                                return elem === fn.elem;
                                                                                                                                                                                            }).length;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 8578..8584

                                                                                                                                                                                    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

                                                                                                                                                                                        preventDefault: function() {
                                                                                                                                                                                            this.isDefaultPrevented = returnTrue;
                                                                                                                                                                                    
                                                                                                                                                                                            var e = this.originalEvent;
                                                                                                                                                                                            if ( !e ) {
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 2124..2137

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

                                                                                                                                                                                    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

                                                                                                                                                                                        stopPropagation: function() {
                                                                                                                                                                                            this.isPropagationStopped = returnTrue;
                                                                                                                                                                                    
                                                                                                                                                                                            var e = this.originalEvent;
                                                                                                                                                                                            if ( !e ) {
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 2109..2123

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                        inArray: function( elem, array ) {
                                                                                                                                                                                            if ( array.indexOf ) {
                                                                                                                                                                                                return array.indexOf( elem );
                                                                                                                                                                                            }
                                                                                                                                                                                    
                                                                                                                                                                                    
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/qunit-1.12.0.js on lines 2044..2056

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                        unwrap: function() {
                                                                                                                                                                                            return this.parent().each(function() {
                                                                                                                                                                                                if ( !jQuery.nodeName( this, "body" ) ) {
                                                                                                                                                                                                    jQuery( this ).replaceWith( this.childNodes );
                                                                                                                                                                                                }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 6050..6056

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

                                                                                                                                                                                    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

                                                                                                                                                                                        sibling: function( n, elem ) {
                                                                                                                                                                                            var r = [];
                                                                                                                                                                                    
                                                                                                                                                                                            for ( ; n; n = n.nextSibling ) {
                                                                                                                                                                                                if ( n.nodeType === 1 && n !== elem ) {
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 5370..5380

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( jQuery.isFunction(value) ) {
                                                                                                                                                                                                return this.each(function(i) {
                                                                                                                                                                                                    var self = jQuery(this);
                                                                                                                                                                                                    self.addClass( value.call(this, i, self.attr("class")) );
                                                                                                                                                                                                });
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 1264..1269

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( jQuery.isFunction(value) ) {
                                                                                                                                                                                                return this.each(function(i) {
                                                                                                                                                                                                    var self = jQuery(this);
                                                                                                                                                                                                    self.removeClass( value.call(this, i, self.attr("class")) );
                                                                                                                                                                                                });
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 1230..1235

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

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

                                                                                                                                                                                                event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 1991..1991
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 4772..4772
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 4773..4773

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

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

                                                                                                                                                                                                event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 1992..1992
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 4772..4772
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 4773..4773

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( jQuery.isFunction(text) ) {
                                                                                                                                                                                                return this.each(function(i) {
                                                                                                                                                                                                    var self = jQuery(this);
                                                                                                                                                                                                    self.text( text.call(this, i, self.text()) );
                                                                                                                                                                                                });
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 6206..6211

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( jQuery.isFunction( size ) ) {
                                                                                                                                                                                                return this.each(function( i ) {
                                                                                                                                                                                                    var self = jQuery( this );
                                                                                                                                                                                                    self[ type ]( size.call( this, i, self[ type ]() ) );
                                                                                                                                                                                                });
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 3996..4001

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

                                                                                                                                                                                    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 curElem   = jQuery( elem ),
                                                                                                                                                                                                curOffset = curElem.offset(),
                                                                                                                                                                                                curTop    = parseInt( jQuery.curCSS( elem, "top",  true ), 10 ) || 0,
                                                                                                                                                                                                curLeft   = parseInt( jQuery.curCSS( elem, "left", true ), 10 ) || 0;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/javascript/jqueryUI/jquery-ui-1.8.13.custom.min.js on lines 456..457

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                            var opt = speed && typeof speed === "object" ? speed : {
                                                                                                                                                                                                complete: fn || !fn && easing ||
                                                                                                                                                                                                    jQuery.isFunction( speed ) && speed,
                                                                                                                                                                                                duration: speed,
                                                                                                                                                                                                easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 8486..8491

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( s.data && s.processData && typeof s.data !== "string" ) {
                                                                                                                                                                                                s.data = jQuery.param( s.data, s.traditional );
                                                                                                                                                                                            }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 7185..7187

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

                                                                                                                                                                                    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

                                                                                                                                                                                                if ( special.add ) { 
                                                                                                                                                                                                    special.add.call( elem, handleObj ); 
                                                                                                                                                                                    
                                                                                                                                                                                                    if ( !handleObj.handler.guid ) {
                                                                                                                                                                                                        handleObj.handler.guid = handler.guid;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 4414..4420

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( !q || jQuery.isArray(data) ) {
                                                                                                                                                                                                q = jQuery.data( elem, type, jQuery.makeArray(data) );
                                                                                                                                                                                    
                                                                                                                                                                                            } else {
                                                                                                                                                                                                q.push( data );
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 3663..3667

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                            function handler( e ) { 
                                                                                                                                                                                                e = jQuery.event.fix( e );
                                                                                                                                                                                                e.type = fix;
                                                                                                                                                                                                return jQuery.event.handle.call( this, e );
                                                                                                                                                                                            }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/javascript/jquery.validate.js on lines 1149..1153

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
                                                                                                                                                                                                if ( a == b ) {
                                                                                                                                                                                                    hasDuplicate = true;
                                                                                                                                                                                                }
                                                                                                                                                                                                return a.compareDocumentPosition ? -1 : 1;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 3383..3388
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 3398..3403

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( !a.sourceIndex || !b.sourceIndex ) {
                                                                                                                                                                                                if ( a == b ) {
                                                                                                                                                                                                    hasDuplicate = true;
                                                                                                                                                                                                }
                                                                                                                                                                                                return a.sourceIndex ? -1 : 1;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 3368..3373
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 3398..3403

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

                                                                                                                                                                                    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

                                                                                                                                                                                            if ( !a.ownerDocument || !b.ownerDocument ) {
                                                                                                                                                                                                if ( a == b ) {
                                                                                                                                                                                                    hasDuplicate = true;
                                                                                                                                                                                                }
                                                                                                                                                                                                return a.ownerDocument ? -1 : 1;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 3368..3373
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 3383..3388

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

                                                                                                                                                                                    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

                                                                                                                                                                                                            if ( option.selected ) {
                                                                                                                                                                                                                // Get the specifc value for the option
                                                                                                                                                                                                                value = jQuery(option).val();
                                                                                                                                                                                    
                                                                                                                                                                                                                // We don't need an array for one selects
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 4047..4062

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                        if ( typeof target === "boolean" ) {
                                                                                                                                                                                            deep = target;
                                                                                                                                                                                            target = arguments[1] || {};
                                                                                                                                                                                            // skip the boolean and the target
                                                                                                                                                                                            i = 2;
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 293..298

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                        map: function( callback ) {
                                                                                                                                                                                            return this.pushStack( jQuery.map(this, function( elem, i ) {
                                                                                                                                                                                                return callback.call( elem, i, elem );
                                                                                                                                                                                            }));
                                                                                                                                                                                        },
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 265..269

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

                                                                                                                                                                                    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

                                                                                                                                                                                                top  = box.top  + (self.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop,
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 5945..5945

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

                                                                                                                                                                                    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

                                                                                                                                                                                                left = box.left + (self.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                    datawinners/media/admin/js/jquery.js on lines 5944..5944

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                            for ( var i = 0, length = elems.length; i < length; i++ ) {
                                                                                                                                                                                                value = callback( elems[ i ], i, arg );
                                                                                                                                                                                    
                                                                                                                                                                                                if ( value != null ) {
                                                                                                                                                                                                    ret[ ret.length ] = value;
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 685..691
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 695..701

                                                                                                                                                                                    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

                                                                                                                                                                                                    for ( var i = 0, l = array.length; i < l; i++ ) {
                                                                                                                                                                                                        ret.push( array[i] );
                                                                                                                                                                                                    }
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Lib/knockout-latest.debug.js on lines 239..241
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Lib/knockout-latest.debug.js on lines 495..497

                                                                                                                                                                                    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

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

                                                                                                                                                                                        jQuery.expr.filters.visible = function( elem ) {
                                                                                                                                                                                            return !jQuery.expr.filters.hidden( elem );
                                                                                                                                                                                        };
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 6589..6591

                                                                                                                                                                                    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

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

                                                                                                                                                                                        trigger: function( type, data ) {
                                                                                                                                                                                            return this.each(function() {
                                                                                                                                                                                                jQuery.event.trigger( type, data, this );
                                                                                                                                                                                            });
                                                                                                                                                                                        },
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 5117..5121

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

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

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

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

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

                                                                                                                                                                                    Refactorings

                                                                                                                                                                                    Further Reading

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

                                                                                                                                                                                            if (selector.selector !== undefined) {
                                                                                                                                                                                                this.selector = selector.selector;
                                                                                                                                                                                                this.context = selector.context;
                                                                                                                                                                                            }
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 188..191

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

                                                                                                                                                                                    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

                                                                                                                                                                                        nodeName: function( elem, name ) {
                                                                                                                                                                                            return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
                                                                                                                                                                                        },
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 556..558

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

                                                                                                                                                                                    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

                                                                                                                                                                                                    type === "$=" ?
                                                                                                                                                                                                    value.substr(value.length - check.length) === check :
                                                                                                                                                                                                    type === "|=" ?
                                                                                                                                                                                                    value === check || value.substr(0, check.length + 1) === check + "-" :
                                                                                                                                                                                                    false;
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in datawinners/media/admin/js/jquery.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                    datawinners/media/javascript/Knockout-Validation/Tests/Qunit/jquery-2.0.3.js on lines 1916..1918

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

                                                                                                                                                                                    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