Noosfero/noosfero

View on GitHub
plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js

Summary

Maintainability
F
1 mo
Test Coverage

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

/*!
 * jQuery JavaScript Library v1.8.3
 * http://jquery.com/
 *
 * Includes Sizzle.js

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

        ajax: function( url, options ) {
    
            // If url is an object, simulate pre-1.5 signature
            if ( typeof url === "object" ) {
                options = url;

      Function support has 143 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jQuery.support = (function() {
      
          var support,
              all,
              a,

        Function Callbacks has 127 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jQuery.Callbacks = function( options ) {
        
            // Convert options from String-formatted to Object-formatted if needed
            // (we check in cache first)
            options = typeof options === "string" ?

          Consider simplifying this complex logical expression.
          Open

                      if ( event.pageX == null && original.clientX != null ) {
                          eventDoc = event.target.ownerDocument || document;
                          doc = eventDoc.documentElement;
                          body = eventDoc.body;
          
          

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

            function defaultPrefilter( elem, props, opts ) {
                var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
                    anim = this,
                    style = elem.style,
                    orig = {},

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

                  trigger: function( event, data, elem, onlyHandlers ) {
                      // Don't do events on text and comment nodes
                      if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                          return;
                      }

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

                                send: function( headers, complete ) {
                
                                    // Get a new xhr
                                    var handle, i,
                                        xhr = s.xhr();

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

                      clean: function( elems, context, fragment, scripts ) {
                          var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,
                              safe = context === document && safeFragment,
                              ret = [];
                  
                  

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

                    function Animation( elem, properties, options ) {
                        var result,
                            index = 0,
                            tweenerIndex = 0,
                            length = animationPrefilters.length,

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

                          add: function( elem, types, handler, data, selector ) {
                      
                              var elemData, eventHandle, events,
                                  t, tns, type, namespaces, handleObj,
                                  handleObjIn, handlers, special;

                        Function matcherFromGroupMatchers has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                            var bySet = setMatchers.length > 0,
                                byElement = elementMatchers.length > 0,
                                superMatcher = function( seed, context, xml, results, expandContext ) {
                                    var elem, j, matcher,

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

                          function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                              if ( postFilter && !postFilter[ expando ] ) {
                                  postFilter = setMatcher( postFilter );
                              }
                              if ( postFinder && !postFinder[ expando ] ) {

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

                                    function done( status, nativeStatusText, responses, headers ) {
                                        var isSuccess, success, error, response, modified,
                                            statusText = nativeStatusText;
                            
                                        // Called once

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

                                  domManip: function( args, table, callback ) {
                              
                                      // Flatten any nested arrays
                                      args = [].concat.apply( [], args );
                              
                              

                                Function dispatch has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    dispatch: function( event ) {
                                
                                        // Make a writable jQuery.Event from the native event object
                                        event = jQuery.event.fix( event || window.event );
                                
                                

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

                                          superMatcher = function( seed, context, xml, results, expandContext ) {
                                              var elem, j, matcher,
                                                  setMatched = [],
                                                  matchedCount = 0,
                                                  i = "0",

                                    Function Deferred has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        Deferred: function( func ) {
                                            var tuples = [
                                                    // action, add listener, listener list, final state
                                                    [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                                    [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],

                                      Function data has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          data: function( elem, name, data, pvt /* Internal Use Only */ ) {
                                              if ( !jQuery.acceptData( elem ) ) {
                                                  return;
                                              }
                                      
                                      

                                        Function ajaxConvert has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function ajaxConvert( s, response ) {
                                        
                                            var conv, conv2, current, tmp,
                                                // Work with a copy of dataTypes in case we need to modify it for conversion
                                                dataTypes = s.dataTypes.slice(),

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

                                              init: function( selector, context, rootjQuery ) {
                                                  var match, elem, ret, doc;
                                          
                                                  // Handle $(""), $(null), $(undefined), $(false)
                                                  if ( !selector ) {

                                            Consider simplifying this complex logical expression.
                                            Open

                                                            if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                                 ( !handler || handler.guid === handleObj.guid ) &&
                                                                 ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
                                                                 ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                                eventType.splice( j--, 1 );

                                              Consider simplifying this complex logical expression.
                                              Open

                                                  if ( args.length === 1 && typeof first === "string" && first.length < 512 && context === document &&
                                                      first.charAt(0) === "<" && !rnocache.test( first ) &&
                                                      (jQuery.support.checkClone || !rchecked.test( first )) &&
                                                      (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
                                              
                                              

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

                                                    remove: function( elem, types, handler, selector, mappedTypes ) {
                                                
                                                        var t, tns, type, origType, namespaces, origCount,
                                                            j, events, special, eventType, handleObj,
                                                            elemData = jQuery.hasData( elem ) && jQuery._data( elem );

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

                                                      data: function( key, value ) {
                                                          var parts, part, attr, name, l,
                                                              elem = this[0],
                                                              i = 0,
                                                              data = null;

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

                                                        removeData: function( elem, name, pvt /* Internal Use Only */ ) {
                                                            if ( !jQuery.acceptData( elem ) ) {
                                                                return;
                                                            }
                                                    
                                                    

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

                                                      function select( selector, context, results, seed, xml ) {
                                                          var i, tokens, token, type, find,
                                                              match = tokenize( selector ),
                                                              j = match.length;
                                                      

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

                                                                "CHILD": function( type, argument, first, last ) {
                                                        
                                                                    if ( type === "nth" ) {
                                                                        return function( elem ) {
                                                                            var node, diff,

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

                                                          function addCombinator( matcher, combinator, base ) {
                                                              var dir = combinator.dir,
                                                                  checkNonElements = base && combinator.dir === "parentNode",
                                                                  doneName = done++;
                                                          

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

                                                            function ajaxHandleResponses( s, jqXHR, responses ) {
                                                            
                                                                var ct, type, finalDataType, firstDataType,
                                                                    contents = s.contents,
                                                                    dataTypes = s.dataTypes,

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

                                                              function matcherFromTokens( tokens ) {
                                                                  var checkContext, matcher, j,
                                                                      len = tokens.length,
                                                                      leadingRelative = Expr.relative[ tokens[0].type ],
                                                                      implicitRelative = leadingRelative || Expr.relative[" "],

                                                                Consider simplifying this complex logical expression.
                                                                Open

                                                                            if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                                                                ( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&
                                                                                ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                                                                !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                                                                
                                                                

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

                                                                      val: function( value ) {
                                                                          var hooks, ret, isFunction,
                                                                              elem = this[0];
                                                                  
                                                                          if ( !arguments.length ) {

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

                                                                    function Sizzle( selector, context, results, seed ) {
                                                                        results = results || [];
                                                                        context = context || document;
                                                                        var match, elem, xml, m,
                                                                            nodeType = context.nodeType;

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

                                                                      jQuery.extend = jQuery.fn.extend = function() {
                                                                          var options, name, src, copy, copyIsArray, clone,
                                                                              target = arguments[0] || {},
                                                                              i = 1,
                                                                              length = arguments.length,

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

                                                                            on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                                var origFn, type;
                                                                        
                                                                                // Types can be a map of types/handlers
                                                                                if ( typeof types === "object" ) {

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

                                                                          function tokenize( selector, parseOnly ) {
                                                                              var matched, match, tokens, type,
                                                                                  soFar, groups, preFilters,
                                                                                  cached = tokenCache[ expando ][ selector + " " ];
                                                                          

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

                                                                                stop: function( type, clearQueue, gotoEnd ) {
                                                                                    var stopQueue = function( hooks ) {
                                                                                        var stop = hooks.stop;
                                                                                        delete hooks.stop;
                                                                                        stop( gotoEnd );

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

                                                                              jQuery.fn.load = function( url, params, callback ) {
                                                                                  if ( typeof url !== "string" && _load ) {
                                                                                      return _load.apply( this, arguments );
                                                                                  }
                                                                              
                                                                              

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

                                                                                    when: function( subordinate /* , ..., subordinateN */ ) {
                                                                                        var i = 0,
                                                                                            resolveValues = core_slice.call( arguments ),
                                                                                            length = resolveValues.length,
                                                                                
                                                                                

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

                                                                                      access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                                                                                          var exec,
                                                                                              bulk = key == null,
                                                                                              i = 0,
                                                                                              length = elems.length;

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

                                                                                        each: function( obj, callback, args ) {
                                                                                            var name,
                                                                                                i = 0,
                                                                                                length = obj.length,
                                                                                                isObj = length === undefined || jQuery.isFunction( obj );

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

                                                                                          attr: function( elem, name, value, pass ) {
                                                                                              var ret, hooks, notxml,
                                                                                                  nType = elem.nodeType;
                                                                                      
                                                                                              // don't get/set attributes on text, comment and attribute nodes

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

                                                                                            cleanData: function( elems, /* internal */ acceptData ) {
                                                                                                var data, id, elem, type,
                                                                                                    i = 0,
                                                                                                    internalKey = jQuery.expando,
                                                                                                    cache = jQuery.cache,

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

                                                                                          function showHide( elements, show ) {
                                                                                              var elem, display,
                                                                                                  values = [],
                                                                                                  index = 0,
                                                                                                  length = elements.length;

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

                                                                                                clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                                                                                    var srcElements,
                                                                                                        destElements,
                                                                                                        i,
                                                                                                        clone;

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

                                                                                              jQuery.fn.offset = function( options ) {
                                                                                                  if ( arguments.length ) {
                                                                                                      return options === undefined ?
                                                                                                          this :
                                                                                                          this.each(function( i ) {

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

                                                                                                    setOffset: function( elem, options, i ) {
                                                                                                        var position = jQuery.css( elem, "position" );
                                                                                                
                                                                                                        // set position first, in-case top/left are set even on static elem
                                                                                                        if ( position === "static" ) {

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

                                                                                                      style: function( elem, name, value, extra ) {
                                                                                                          // Don't set styles on text and comment nodes
                                                                                                          if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                                                                                              return;
                                                                                                          }

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

                                                                                                    function cloneFixAttributes( src, dest ) {
                                                                                                        var nodeName;
                                                                                                    
                                                                                                        // We do not need to do anything for non-Elements
                                                                                                        if ( dest.nodeType !== 1 ) {

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

                                                                                                      jQuery.ready.promise = function( obj ) {
                                                                                                          if ( !readyList ) {
                                                                                                      
                                                                                                              readyList = jQuery.Deferred();
                                                                                                      
                                                                                                      

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

                                                                                                            html: function( value ) {
                                                                                                                return jQuery.access( this, function( value ) {
                                                                                                                    var elem = this[0] || {},
                                                                                                                        i = 0,
                                                                                                                        l = this.length;

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

                                                                                                                  setup: function() {
                                                                                                          
                                                                                                                      if ( rformElems.test( this.nodeName ) ) {
                                                                                                                          // IE doesn't fire change on a check/radio until blur; trigger it on click
                                                                                                                          // after a propertychange. Eat the blur-change in special.change.handle.

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

                                                                                                                addClass: function( value ) {
                                                                                                                    var classNames, i, l, elem,
                                                                                                                        setClass, c, cl;
                                                                                                            
                                                                                                                    if ( jQuery.isFunction( value ) ) {

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

                                                                                                              function propFilter( props, specialEasing ) {
                                                                                                                  var index, name, easing, value, hooks;
                                                                                                              
                                                                                                                  // camelCase, specialEasing and expand cssHook pass
                                                                                                                  for ( index in props ) {

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

                                                                                                                    find: function( selector ) {
                                                                                                                        var i, l, length, n, r, ret,
                                                                                                                            self = this;
                                                                                                                
                                                                                                                        if ( typeof selector !== "string" ) {

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

                                                                                                                      off: function( types, selector, fn ) {
                                                                                                                          var handleObj, type;
                                                                                                                          if ( types && types.preventDefault && types.handleObj ) {
                                                                                                                              // ( event )  dispatched jQuery.Event
                                                                                                                              handleObj = types.handleObj;

                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                    Open

                                                                                                                    if ( jQuery.expr && jQuery.expr.filters ) {
                                                                                                                        jQuery.expr.filters.hidden = function( elem ) {
                                                                                                                            return ( elem.offsetWidth === 0 && elem.offsetHeight === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || curCSS( elem, "display" )) === "none");
                                                                                                                        };
                                                                                                                    
                                                                                                                    

                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                      Open

                                                                                                                                      if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
                                                                                                                      
                                                                                                                                          event.data = handleObj.data;
                                                                                                                                          event.handleObj = handleObj;
                                                                                                                      
                                                                                                                      

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                                        if ( unit !== "px" && start ) {
                                                                                                                                            // Iteratively approximate from a nonzero starting point
                                                                                                                                            // Prefer the current property, because this process will be trivial if it uses the same units
                                                                                                                                            // Fallback to end or a simple constant
                                                                                                                                            start = jQuery.css( tween.elem, prop, true ) || end || 1;

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

                                                                                                                              access: function( elems, fn, key, value, chainable, emptyGet, pass ) {

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

                                                                                                                            function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {

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

                                                                                                                              function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
                                                                                                                                      dataType /* internal */, inspected /* internal */ ) {

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

                                                                                                                                    init: function( elem, options, prop, end, easing, unit ) {

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                          for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                                              if ( setClass.indexOf( " " + classNames[ c ] + " " ) < 0 ) {
                                                                                                                                                                  setClass += classNames[ c ] + " ";
                                                                                                                                                              }
                                                                                                                                                          }

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                    } else if ( copy !== undefined ) {
                                                                                                                                                        target[ name ] = copy;
                                                                                                                                                    }

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                                              if ( !name.indexOf( "data-" ) ) {
                                                                                                                                                                  name = jQuery.camelCase( name.substring(5) );
                                                                                                                                      
                                                                                                                                                                  dataAttr( elem, name, data[ name ] );
                                                                                                                                                              }

                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                        Open

                                                                                                                                                                    if ( !(unmatched[i] || setMatched[i]) ) {
                                                                                                                                                                        setMatched[i] = pop.call( results );
                                                                                                                                                                    }

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                                              if ( !status && s.isLocal && !s.crossDomain ) {
                                                                                                                                                                                  status = responses.text ? 200 : 404;
                                                                                                                                                                              // IE - #1450: sometimes returns 1223 when it should be 204
                                                                                                                                                                              } else if ( status === 1223 ) {
                                                                                                                                                                                  status = 204;

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                                                if ( xhr.readyState !== 4 ) {
                                                                                                                                                                                    xhr.abort();
                                                                                                                                                                                }

                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                              Open

                                                                                                                                                                          if ( !xhrCallbacks ) {
                                                                                                                                                                              xhrCallbacks = {};
                                                                                                                                                                              jQuery( window ).unload( xhrOnUnloadAbort );
                                                                                                                                                                          }

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                        if ( elem.id !== match[2] ) {
                                                                                                                                                                            return rootjQuery.find( selector );
                                                                                                                                                                        }

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                          while ( className.indexOf(" " + removes[ c ] + " ") >= 0 ) {
                                                                                                                                                                              className = className.replace( " " + removes[ c ] + " " , " " );
                                                                                                                                                                          }

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                        if ( (seed = find(
                                                                                                                                                                            token.matches[0].replace( rbackslash, "" ),
                                                                                                                                                                            rsibling.test( tokens[0].type ) && context.parentNode || context,
                                                                                                                                                                            xml
                                                                                                                                                                        )) ) {

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                              if ( name in thisCache ) {
                                                                                                                                                                                  name = [ name ];
                                                                                                                                                                              } else {
                                                                                                                                                                                  name = name.split(" ");
                                                                                                                                                                              }

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                if ( selMatch[ sel ] ) {
                                                                                                                                                                                    matches.push( handleObj );
                                                                                                                                                                                }

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                                  for ( type in data.events ) {
                                                                                                                                                                                      if ( special[ type ] ) {
                                                                                                                                                                                          jQuery.event.remove( elem, type );
                                                                                                                                                          
                                                                                                                                                                                      // This is a shortcut to avoid jQuery.event.remove's overhead

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                            if ( elem === node ) {
                                                                                                                                                                                                break;
                                                                                                                                                                                            }

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                      if ( ret[r] === ret[n] ) {
                                                                                                                                                                                          ret.splice(n--, 1);
                                                                                                                                                                                          break;
                                                                                                                                                                                      }

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                                    if ( xhrOnUnloadAbort ) {
                                                                                                                                                                                                        delete xhrCallbacks[ handle ];
                                                                                                                                                                                                    }

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                      if ( copyIsArray ) {
                                                                                                                                                                                          copyIsArray = false;
                                                                                                                                                                                          clone = src && jQuery.isArray(src) ? src : [];
                                                                                                                                                                  
                                                                                                                                                                                      } else {

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                                if ( elem.sizset ) {
                                                                                                                                                                                                    return elem;
                                                                                                                                                                                                }

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                                  if ( matcher( elem, context, xml ) ) {
                                                                                                                                                                                                      elem.sizset = true;
                                                                                                                                                                                                      return elem;
                                                                                                                                                                                                  }

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                            for ( conv2 in converters ) {
                                                                                                                                                                        
                                                                                                                                                                                                // If conv2 outputs current
                                                                                                                                                                                                tmp = conv2.split(" ");
                                                                                                                                                                                                if ( tmp[ 1 ] === current ) {

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                                              if ( xml && xml.documentElement /* #4958 */ ) {
                                                                                                                                                                                                                  responses.xml = xml;
                                                                                                                                                                                                              }

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                                if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                                                                                                                                                                                                    contains( context, elem ) && elem.id === m ) {
                                                                                                                                                                                                    results.push( elem );
                                                                                                                                                                                                    return results;
                                                                                                                                                                                                }

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                      if ( ret === false ) {
                                                                                                                                                                                                          event.preventDefault();
                                                                                                                                                                                                          event.stopPropagation();
                                                                                                                                                                                                      }

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                    if ( Expr.relative[ tokens[j].type ] ) {
                                                                                                                                                                                                        break;
                                                                                                                                                                                                    }

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                          for ( j = tbody.length - 1; j >= 0 ; --j ) {
                                                                                                                                                                                                              if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                                                                                                                                                                                  tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                                                                                                                                                                              }
                                                                                                                                                                                                          }

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                            if ( deleteExpando ) {
                                                                                                                                                                                                                delete elem[ internalKey ];
                                                                                                                                                                                    
                                                                                                                                                                                                            } else if ( elem.removeAttribute ) {
                                                                                                                                                                                                                elem.removeAttribute( internalKey );

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                          if ( conv && s["throws"] ) {
                                                                                                                                                                                                              response = conv( response );
                                                                                                                                                                                                          } else {
                                                                                                                                                                                                              try {
                                                                                                                                                                                                                  response = conv( response );

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                                                if ( selMatch[ sel ] === undefined ) {
                                                                                                                                                                                                                    selMatch[ sel ] = handleObj.needsContext ?
                                                                                                                                                                                                                        jQuery( sel, this ).index( cur ) >= 0 :
                                                                                                                                                                                                                        jQuery.find( sel, this, null, [ cur ] ).length;
                                                                                                                                                                                                                }

                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                          Open

                                                                                                                                                                                                              if ( elem && elem.parentNode ) {
                                                                                                                                                                                                                  // Handle the case where IE, Opera, and Webkit return items
                                                                                                                                                                                                                  // by name instead of ID
                                                                                                                                                                                                                  if ( elem.id === m ) {
                                                                                                                                                                                                                      results.push( elem );

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                    if ( (elem = matcherOut[i]) ) {
                                                                                                                                                                                                                        // Restore matcherIn since elem is not yet a final match
                                                                                                                                                                                                                        temp.push( (matcherIn[i] = elem) );
                                                                                                                                                                                                                    }

                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                              Open

                                                                                                                                                                                                              if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
                                                                                                                                                                                              
                                                                                                                                                                                                                  // Don't re-trigger an onFOO event when we call its FOO() method
                                                                                                                                                                                                                  old = elem[ ontype ];
                                                                                                                                                                                              
                                                                                                                                                                                              

                                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                                Open

                                                                                                                                                                                                        if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
                                                                                                                                                                                                            return;
                                                                                                                                                                                                        }

                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                          if ( s.crossDomain == null ) {
                                                                                                                                                                                                              parts = rurl.exec( s.url.toLowerCase() );
                                                                                                                                                                                                              s.crossDomain = !!( parts &&
                                                                                                                                                                                                                  ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                                                                                                                                                                                                      ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=

                                                                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                if ( matcher[ expando ] ) {
                                                                                                                                                                                                                    // Find the next relative operator (if any) for proper handling
                                                                                                                                                                                                                    j = ++i;
                                                                                                                                                                                                                    for ( ; j < len; j++ ) {
                                                                                                                                                                                                                        if ( Expr.relative[ tokens[j].type ] ) {

                                                                                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                      if ( !jQuery.support.opacity ) {
                                                                                                                                                                                                          jQuery.cssHooks.opacity = {
                                                                                                                                                                                                              get: function( elem, computed ) {
                                                                                                                                                                                                                  // IE uses filters for opacity
                                                                                                                                                                                                                  return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?

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

                                                                                                                                                                                                            add: function( elem, types, handler, data, selector ) {

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

                                                                                                                                                                                                              on: function( types, selector, data, fn, /*INTERNAL*/ one ) {

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

                                                                                                                                                                                                            function select( selector, context, results, seed, xml ) {

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

                                                                                                                                                                                                                      superMatcher = function( seed, context, xml, results, expandContext ) {

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

                                                                                                                                                                                                                function Tween( elem, options, prop, end, easing ) {

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

                                                                                                                                                                                                                      remove: function( elem, types, handler, selector, mappedTypes ) {

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

                                                                                                                                                                                                                    function condense( unmatched, map, filter, context, xml ) {

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                      return ( context || rootjQuery ).find( selector );

                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                return event.result;

                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                          return results;

                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                return this;

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                      return jQuery.makeArray( selector, this );

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                    return {
                                                                                                                                                                                                                                        top: box.top  + scrollTop  - clientTop,
                                                                                                                                                                                                                                        left: box.left + scrollLeft - clientLeft
                                                                                                                                                                                                                                    };

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                              return rootjQuery.ready( selector );

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                    return elem[ name ];

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                      return ret;

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    return ret === null ?
                                                                                                                                                                                                                                                        undefined :
                                                                                                                                                                                                                                                        ret;

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                      return;

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                    return results;

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                  return select( selector.replace( rtrim, "$1" ), context, results, seed, xml );

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                            return 1;

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                  return this.constructor( context ).find( selector );

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    return results;

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                  return ret;

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        return siblingCheck( ap[i], bp[i] );

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                  return i === al ?
                                                                                                                                                                                                                                                                      siblingCheck( a, bp[i], -1 ) :
                                                                                                                                                                                                                                                                      siblingCheck( ap[i], b, 1 );

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                            return value;

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

                                                                                                                                                                                                                                                                              event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 3112..3112

                                                                                                                                                                                                                                                              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

                                                                                                                                                                                                                                                                              event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 3111..3111

                                                                                                                                                                                                                                                              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( value ) ) {
                                                                                                                                                                                                                                                                          return this.each(function( j ) {
                                                                                                                                                                                                                                                                              jQuery( this ).removeClass( value.call(this, j, this.className) );
                                                                                                                                                                                                                                                                          });
                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 2033..2037

                                                                                                                                                                                                                                                              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

                                                                                                                                                                                                                                                                      if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                                                          return this.each(function( j ) {
                                                                                                                                                                                                                                                                              jQuery( this ).addClass( value.call(this, j, this.className) );
                                                                                                                                                                                                                                                                          });
                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 2069..2073

                                                                                                                                                                                                                                                              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

                                                                                                                                                                                                                                                                      if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                                                                          return this.each(function(i) {
                                                                                                                                                                                                                                                                              jQuery(this).wrapInner( html.call(this, i) );
                                                                                                                                                                                                                                                                          });
                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 5712..5716

                                                                                                                                                                                                                                                              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 ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                                                                          return this.each(function(i) {
                                                                                                                                                                                                                                                                              jQuery(this).wrapAll( html.call(this, i) );
                                                                                                                                                                                                                                                                          });
                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 5741..5745

                                                                                                                                                                                                                                                              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

                                                                                                                                                                                                                                                                      "even": createPositionalPseudo(function( matchIndexes, length ) {
                                                                                                                                                                                                                                                                          for ( var i = 0; i < length; i += 2 ) {
                                                                                                                                                                                                                                                                              matchIndexes.push( i );
                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                          return matchIndexes;
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 4537..4542

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

                                                                                                                                                                                                                                                              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

                                                                                                                                                                                                                                                                      "odd": createPositionalPseudo(function( matchIndexes, length ) {
                                                                                                                                                                                                                                                                          for ( var i = 1; i < length; i += 2 ) {
                                                                                                                                                                                                                                                                              matchIndexes.push( i );
                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                          return matchIndexes;
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 4530..4535

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

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

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

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

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

                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                          for ( key in elems ) {
                                                                                                                                                                                                                                                                              value = callback( elems[ key ], key, arg );
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                              if ( value != null ) {
                                                                                                                                                                                                                                                                                  ret[ ret.length ] = value;
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 729..735

                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                              This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                          for ( ; i < length; i++ ) {
                                                                                                                                                                                                                                                                              value = callback( elems[ i ], i, arg );
                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                              if ( value != null ) {
                                                                                                                                                                                                                                                                                  ret[ ret.length ] = value;
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 739..745

                                                                                                                                                                                                                                                              Duplicated Code

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

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

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

                                                                                                                                                                                                                                                              Tuning

                                                                                                                                                                                                                                                              This issue has a mass of 47.

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

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

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

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

                                                                                                                                                                                                                                                              Refactorings

                                                                                                                                                                                                                                                              Further Reading

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

                                                                                                                                                                                                                                                                          if ( extra !== "padding" ) {
                                                                                                                                                                                                                                                                              val += parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 6932..6934

                                                                                                                                                                                                                                                              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

                                                                                                                                                                                                                                                                          if ( extra !== "margin" ) {
                                                                                                                                                                                                                                                                              val -= parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                              plugins/display_content/public/javascripts/jstree-v.pre1.0/_lib/jquery-1.8.3.js on lines 6940..6942

                                                                                                                                                                                                                                                              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