krafthaus/bauhaus

View on GitHub
bower_components/jquery/src/sizzle/dist/sizzle.js

Summary

Maintainability
F
3 mos
Test Coverage

File sizzle.js has 1355 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Sizzle CSS Selector Engine v1.10.19
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
Severity: Major
Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 3 days to fix

    Function setDocument has 216 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    setDocument = Sizzle.setDocument = function( node ) {
        var hasCompare,
            doc = node ? node.ownerDocument || node : preferredDoc,
            parent = doc.defaultView;
    
    
    Severity: Major
    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 day to fix

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

      function Sizzle( selector, context, results, seed ) {
          var match, elem, m, nodeType,
              // QSA vars
              i, groups, old, nid, newContext, newSelector;
      
      
      Severity: Major
      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 3 hrs to fix

        Function matcherFromGroupMatchers has 68 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, outermost ) {
                    var elem, j, matcher,
        Severity: Major
        Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

          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 ] ) {
          Severity: Major
          Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

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

                    superMatcher = function( seed, context, xml, results, outermost ) {
                        var elem, j, matcher,
                            matchedCount = 0,
                            i = "0",
                            unmatched = seed && [],
            Severity: Major
            Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

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

                      "CHILD": function( type, what, argument, first, last ) {
                          var simple = type.slice( 0, 3 ) !== "nth",
                              forward = type.slice( -4 ) !== "last",
                              ofType = what === "of-type";
              
              
              Severity: Major
              Found in bower_components/jquery/src/sizzle/dist/sizzle.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 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/src/sizzle/dist/sizzle.js - About 1 hr to fix

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

                    tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                        var matched, match, tokens, type,
                            soFar, groups, preFilters,
                            cached = tokenCache[ selector + " " ];
                    
                    
                    Severity: Minor
                    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

                      Function matcherFromTokens has 44 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[" "],
                      Severity: Minor
                      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

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

                        function addCombinator( matcher, combinator, base ) {
                            var dir = combinator.dir,
                                checkNonElements = base && dir === "parentNode",
                                doneName = done++;
                        
                        
                        Severity: Minor
                        Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                                  } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                                      diff = cache[1];
                          
                                                  // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                                  } else {
                          Severity: Critical
                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                            support.getById && context.nodeType === 9 && documentIsHTML &&
                                            Expr.relative[ tokens[1].type ] ) {
                            
                                        context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                            Severity: Major
                            Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

                              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 );
                              Severity: Major
                              Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
                                                                        return false;
                                                                    }
                                Severity: Major
                                Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

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

                                  function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                  Severity: Minor
                                  Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
                                                                        // Cache the index of each encountered element
                                                                        if ( useCache ) {
                                                                            (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
                                                                        }
                                    Severity: Major
                                    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                      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;
                                                          }
                                      Severity: Major
                                      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( Expr.relative[ tokens[j].type ] ) {
                                                                break;
                                                            }
                                        Severity: Major
                                        Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                          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) );
                                                                  }
                                          Severity: Major
                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                if ( !selector ) {
                                                                    push.apply( results, seed );
                                                                    return results;
                                                                }
                                            Severity: Major
                                            Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                                                          if ( !(unmatched[i] || setMatched[i]) ) {
                                                                              setMatched[i] = pop.call( results );
                                                                          }
                                              Severity: Major
                                              Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                                Avoid deeply nested control flow statements.
                                                Open

                                                                            if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                                                                return true;
                                                                            }
                                                Severity: Major
                                                Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                                                  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 ] ) {
                                                  Severity: Major
                                                  Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 40 mins to fix

                                                    Consider simplifying this complex logical expression.
                                                    Open

                                                        if ( support.matchesSelector && documentIsHTML &&
                                                            ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                                            ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                                                    
                                                            try {
                                                    Severity: Major
                                                    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 40 mins to fix

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

                                                              "CHILD": function( type, what, argument, first, last ) {
                                                      Severity: Minor
                                                      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 35 mins to fix

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

                                                        function condense( unmatched, map, filter, context, xml ) {
                                                        Severity: Minor
                                                        Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 35 mins to fix

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

                                                                  superMatcher = function( seed, context, xml, results, outermost ) {
                                                          Severity: Minor
                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 35 mins to fix

                                                            Avoid too many return statements within this function.
                                                            Open

                                                                            return results;
                                                            Severity: Major
                                                            Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 30 mins to fix

                                                              Avoid too many return statements within this function.
                                                              Open

                                                                                  return results;
                                                              Severity: Major
                                                              Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 30 mins to fix

                                                                Avoid too many return statements within this function.
                                                                Open

                                                                            return sortInput ?
                                                                                ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
                                                                                0;
                                                                Severity: Major
                                                                Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 30 mins to fix

                                                                  Avoid too many return statements within this function.
                                                                  Open

                                                                                  return results;
                                                                  Severity: Major
                                                                  Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 30 mins to fix

                                                                    Avoid too many return statements within this function.
                                                                    Open

                                                                            return compare & 4 ? -1 : 1;
                                                                    Severity: Major
                                                                    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 30 mins to fix

                                                                      Avoid too many return statements within this function.
                                                                      Open

                                                                          return select( selector.replace( rtrim, "$1" ), context, results, seed );
                                                                      Severity: Major
                                                                      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 30 mins to fix

                                                                        Avoid too many return statements within this function.
                                                                        Open

                                                                                                return results;
                                                                        Severity: Major
                                                                        Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 30 mins to fix

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

                                                                          Expr = Sizzle.selectors = {
                                                                          
                                                                              // Can be adjusted by the user
                                                                              cacheLength: 50,
                                                                          
                                                                          
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 wks to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1544..2008

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

                                                                          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

                                                                          setDocument = Sizzle.setDocument = function( node ) {
                                                                              var hasCompare,
                                                                                  doc = node ? node.ownerDocument || node : preferredDoc,
                                                                                  parent = doc.defaultView;
                                                                          
                                                                          
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 wks to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1048..1408

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          var i,
                                                                              support,
                                                                              Expr,
                                                                              getText,
                                                                              isXML,
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 5 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 598..742

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function Sizzle( selector, context, results, seed ) {
                                                                              var match, elem, m, nodeType,
                                                                                  // QSA vars
                                                                                  i, groups, old, nid, newContext, newSelector;
                                                                          
                                                                          
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 4 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 773..880

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                                                              if ( postFilter && !postFilter[ expando ] ) {
                                                                                  postFilter = setMatcher( postFilter );
                                                                              }
                                                                              if ( postFinder && !postFinder[ expando ] ) {
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2199..2290

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

                                                                          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

                                                                          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: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2485..2553

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                                                                              var bySet = setMatchers.length > 0,
                                                                                  byElement = elementMatchers.length > 0,
                                                                                  superMatcher = function( seed, context, xml, results, outermost ) {
                                                                                      var elem, j, matcher,
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2347..2444

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function matcherFromTokens( tokens ) {
                                                                              var checkContext, matcher, j,
                                                                                  len = tokens.length,
                                                                                  leadingRelative = Expr.relative[ tokens[0].type ],
                                                                                  implicitRelative = leadingRelative || Expr.relative[" "],
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2292..2345

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

                                                                          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

                                                                          tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                                                                              var matched, match, tokens, type,
                                                                                  soFar, groups, preFilters,
                                                                                  cached = tokenCache[ selector + " " ];
                                                                          
                                                                          
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2025..2090

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function addCombinator( matcher, combinator, base ) {
                                                                              var dir = combinator.dir,
                                                                                  checkNonElements = base && dir === "parentNode",
                                                                                  doneName = done++;
                                                                          
                                                                          
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 days to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2102..2153

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

                                                                          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

                                                                          getText = Sizzle.getText = function( elem ) {
                                                                              var node,
                                                                                  ret = "",
                                                                                  i = 0,
                                                                                  nodeType = elem.nodeType;
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 day to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1513..1542

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

                                                                          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

                                                                          Sizzle.matchesSelector = function( elem, expr ) {
                                                                              // Set document vars if needed
                                                                              if ( ( elem.ownerDocument || elem ) !== document ) {
                                                                                  setDocument( elem );
                                                                              }
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 day to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1414..1441

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
                                                                              var i,
                                                                                  setMatchers = [],
                                                                                  elementMatchers = [],
                                                                                  cached = compilerCache[ selector + " " ];
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 day to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2446..2474

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

                                                                          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

                                                                          try {
                                                                              push.apply(
                                                                                  (arr = slice.call( preferredDoc.childNodes )),
                                                                                  preferredDoc.childNodes
                                                                              );
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 7 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 745..771

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

                                                                          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

                                                                          Sizzle.uniqueSort = function( results ) {
                                                                              var elem,
                                                                                  duplicates = [],
                                                                                  j = 0,
                                                                                  i = 0;
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 7 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1480..1507

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

                                                                          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

                                                                          Sizzle.attr = function( elem, name ) {
                                                                              // Set document vars if needed
                                                                              if ( ( elem.ownerDocument || elem ) !== document ) {
                                                                                  setDocument( elem );
                                                                              }
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 7 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1451..1470

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function siblingCheck( a, b ) {
                                                                              var cur = b && a,
                                                                                  diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
                                                                                      ( ~b.sourceIndex || MAX_NEGATIVE ) -
                                                                                      ( ~a.sourceIndex || MAX_NEGATIVE );
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 5 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 952..973

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function createPositionalPseudo( fn ) {
                                                                              return markFunction(function( argument ) {
                                                                                  argument = +argument;
                                                                                  return markFunction(function( seed, matches ) {
                                                                                      var j,
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 5 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1001..1017

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          if ( !support.attributes || !assert(function( div ) {
                                                                              div.innerHTML = "<input/>";
                                                                              div.firstChild.setAttribute( "value", "" );
                                                                              return div.firstChild.getAttribute( "value" ) === "";
                                                                          }) ) {
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 4 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2590..2600

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function condense( unmatched, map, filter, context, xml ) {
                                                                              var elem,
                                                                                  newUnmatched = [],
                                                                                  i = 0,
                                                                                  len = unmatched.length,
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 4 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2178..2197

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          if ( !assert(function( div ) {
                                                                              div.innerHTML = "<a href='#'></a>";
                                                                              return div.firstChild.getAttribute("href") === "#" ;
                                                                          }) ) {
                                                                              addHandle( "type|href|height|width", function( elem, name, isXML ) {
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2577..2586

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function assert( fn ) {
                                                                              var div = document.createElement("div");
                                                                          
                                                                              try {
                                                                                  return !!fn( div );
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 915..930

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function createCache() {
                                                                              var keys = [];
                                                                          
                                                                              function cache( key, value ) {
                                                                                  // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 888..900

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

                                                                          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 ( !assert(function( div ) {
                                                                              return div.getAttribute("disabled") == null;
                                                                          }) ) {
                                                                              addHandle( booleans, function( elem, name, isXML ) {
                                                                                  var val;
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2604..2616

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function elementMatcher( matchers ) {
                                                                              return matchers.length > 1 ?
                                                                                  function( elem, context, xml ) {
                                                                                      var i = matchers.length;
                                                                                      while ( i-- ) {
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 hrs to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2155..2167

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

                                                                          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

                                                                          isXML = Sizzle.isXML = function( elem ) {
                                                                              // documentElement is verified for cases where it doesn't yet exist
                                                                              // (such as loading iframes in IE - #4833)
                                                                              var documentElement = elem && (elem.ownerDocument || elem).documentElement;
                                                                              return documentElement ? documentElement.nodeName !== "HTML" : false;
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1036..1041

                                                                          Duplicated Code

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

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

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

                                                                          Tuning

                                                                          This issue has a mass of 68.

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function createButtonPseudo( type ) {
                                                                              return function( elem ) {
                                                                                  var name = elem.nodeName.toLowerCase();
                                                                                  return (name === "input" || name === "button") && elem.type === type;
                                                                              };
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 990..995

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function addHandle( attrs, handler ) {
                                                                              var arr = attrs.split("|"),
                                                                                  i = attrs.length;
                                                                          
                                                                              while ( i-- ) {
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 937..944

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function toSelector( tokens ) {
                                                                              var i = 0,
                                                                                  len = tokens.length,
                                                                                  selector = "";
                                                                              for ( ; i < len; i++ ) {
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2092..2100

                                                                          Duplicated Code

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

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

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

                                                                          Tuning

                                                                          This issue has a mass of 63.

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function createInputPseudo( type ) {
                                                                              return function( elem ) {
                                                                                  var name = elem.nodeName.toLowerCase();
                                                                                  return name === "input" && elem.type === type;
                                                                              };
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 979..984

                                                                          Duplicated Code

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

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

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

                                                                          Tuning

                                                                          This issue has a mass of 59.

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          function multipleContexts( selector, contexts, results ) {
                                                                              var i = 0,
                                                                                  len = contexts.length;
                                                                              for ( ; i < len; i++ ) {
                                                                                  Sizzle( selector, contexts[i], results );
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2169..2176

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
                                                                              Expr.pseudos[ i ] = createInputPseudo( i );
                                                                          }
                                                                          Severity: Major
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2013..2015

                                                                          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

                                                                          Sizzle.contains = function( context, elem ) {
                                                                              // Set document vars if needed
                                                                              if ( ( context.ownerDocument || context ) !== document ) {
                                                                                  setDocument( context );
                                                                              }
                                                                          Severity: Minor
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 55 mins to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 1443..1449

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

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          support.sortDetached = assert(function( div1 ) {
                                                                              // Should return 1, but returns 4 (following)
                                                                              return div1.compareDocumentPosition( document.createElement("div") ) & 1;
                                                                          });
                                                                          Severity: Minor
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 55 mins to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2569..2572

                                                                          Duplicated Code

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

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

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

                                                                          Tuning

                                                                          This issue has a mass of 53.

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

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

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

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

                                                                          Refactorings

                                                                          Further Reading

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

                                                                          support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
                                                                          Severity: Minor
                                                                          Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 30 mins to fix
                                                                          bower_components/jquery/dist/jquery.js on lines 2558..2558

                                                                          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