diffux/diffux

View on GitHub

Showing 229 of 579 total issues

Function Deferred has 59 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" ],
Severity: Major
Found in bower_components/jquery/src/deferred.js - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                            if ( forward && useCache ) {
                                // Seek `elem` from a previously-cached index
                                outerCache = parent[ expando ] || (parent[ expando ] = {});
                                cache = outerCache[ type ] || [];
                                nodeIndex = cache[0] === dirruns && cache[1];
    Severity: Critical
    Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

                              if ( forward && useCache ) {
                                  // Seek `elem` from a previously-cached index
                                  outerCache = parent[ expando ] || (parent[ expando ] = {});
                                  cache = outerCache[ type ] || [];
                                  nodeIndex = cache[0] === dirruns && cache[1];
      Severity: Critical
      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

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

            domManip: function( args, callback ) {
        
                // Flatten any nested arrays
                args = concat.apply( [], args );
        
        
        Severity: Major
        Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

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

              domManip: function( args, callback ) {
          
                  // Flatten any nested arrays
                  args = concat.apply( [], args );
          
          
          Severity: Major
          Found in bower_components/jquery/src/manipulation.js - About 2 hrs to fix

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

                init = jQuery.fn.init = function( selector, context ) {
                    var match, elem;
            
                    // HANDLE: $(""), $(null), $(undefined), $(false)
                    if ( !selector ) {
            Severity: Major
            Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

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

                  init = jQuery.fn.init = function( selector, context ) {
                      var match, elem;
              
                      // HANDLE: $(""), $(null), $(undefined), $(false)
                      if ( !selector ) {
              Severity: Major
              Found in bower_components/jquery/src/core/init.js - About 2 hrs to fix

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

                function ajaxConvert( s, response, jqXHR, isSuccess ) {
                    var conv2, current, conv, tmp, prev,
                        converters = {},
                        // Work with a copy of dataTypes in case we need to modify it for conversion
                        dataTypes = s.dataTypes.slice();
                Severity: Major
                Found in bower_components/jquery/src/ajax.js - About 2 hrs to fix

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

                  function ajaxConvert( s, response, jqXHR, isSuccess ) {
                      var conv2, current, conv, tmp, prev,
                          converters = {},
                          // Work with a copy of dataTypes in case we need to modify it for conversion
                          dataTypes = s.dataTypes.slice();
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

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

                                send: function( headers, complete ) {
                                    var i,
                                        xhr = options.xhr(),
                                        id = ++xhrId;
                    
                    
                    Severity: Major
                    Found in bower_components/jquery/src/ajax/xhr.js - About 2 hrs to fix

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

                          data: function( key, value ) {
                              var i, name, data,
                                  elem = this[ 0 ],
                                  attrs = elem && elem.attributes;
                      
                      
                      Severity: Major
                      Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

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

                                    send: function( headers, complete ) {
                                        var i,
                                            xhr = options.xhr(),
                                            id = ++xhrId;
                        
                        
                        Severity: Major
                        Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

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

                              data: function( key, value ) {
                                  var i, name, data,
                                      elem = this[ 0 ],
                                      attrs = elem && elem.attributes;
                          
                          
                          Severity: Major
                          Found in bower_components/jquery/src/data.js - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                            if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                ( !handler || handler.guid === handleObj.guid ) &&
                                                ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                                ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                handlers.splice( j, 1 );
                            Severity: Critical
                            Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

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

                                  remove: function( elem, types, handler, selector, mappedTypes ) {
                              
                                      var j, origCount, tmp,
                                          events, t, handleObj,
                                          special, handlers, type, namespaces, origType,
                              Severity: Minor
                              Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

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

                                    remove: function( elem, types, handler, selector, mappedTypes ) {
                                
                                        var j, origCount, tmp,
                                            events, t, handleObj,
                                            special, handlers, type, namespaces, origType,
                                Severity: Minor
                                Found in bower_components/jquery/src/event.js - About 2 hrs to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                      ( !handler || handler.guid === handleObj.guid ) &&
                                                      ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                                      ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                      handlers.splice( j, 1 );
                                  Severity: Critical
                                  Found in bower_components/jquery/src/event.js - About 2 hrs to fix

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

                                        buildFragment: function( elems, context, scripts, selection ) {
                                            var elem, tmp, tag, wrap, contains, j,
                                                fragment = context.createDocumentFragment(),
                                                nodes = [],
                                                i = 0,
                                    Severity: Minor
                                    Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

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

                                          buildFragment: function( elems, context, scripts, selection ) {
                                              var elem, tmp, tag, wrap, contains, j,
                                                  fragment = context.createDocumentFragment(),
                                                  nodes = [],
                                                  i = 0,
                                      Severity: Minor
                                      Found in bower_components/jquery/src/manipulation.js - About 1 hr to fix

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

                                        select = Sizzle.select = function( selector, context, results, seed ) {
                                            var i, tokens, token, type, find,
                                                compiled = typeof selector === "function" && selector,
                                                match = !seed && tokenize( (selector = compiled.selector || selector) );
                                        
                                        
                                        Severity: Minor
                                        Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language