jquery/jquery

View on GitHub

Showing 310 of 366 total issues

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

    function makeApi(sinon) {
        var push = [].push;

        function exposeValue(sandbox, config, key, value) {
            if (!value) {
Severity: Major
Found in external/sinon/sinon.js - About 3 hrs to fix

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

        DiffMatchPatch.prototype.diffBisect = function( text1, text2, deadline ) {
            var text1Length, text2Length, maxD, vOffset, vLength,
                v1, v2, x, delta, front, k1start, k1end, k2start,
                k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2;
    
    
    Severity: Major
    Found in external/qunit/qunit.js - About 3 hrs to fix

      File css.js has 313 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      define( [
          "./core",
          "./var/pnum",
          "./core/access",
          "./var/document",
      Severity: Minor
      Found in src/css.js - About 3 hrs to fix

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

                    makeRequire: function (relMap, options) {
                        options = options || {};
        
                        function localRequire(deps, callback, errback) {
                            var id, map, requireMod;
        Severity: Major
        Found in external/requirejs/require.js - About 3 hrs to fix

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

          function Sizzle( selector, context, results, seed ) {
              var m, i, elem, nid, match, groups, newSelector,
                  newContext = context && context.ownerDocument,
          
                  // nodeType defaults to 9, since context defaults to document
          Severity: Major
          Found in external/sizzle/dist/sizzle.js - About 3 hrs to fix

            Function CHILD has 80 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 external/sizzle/dist/sizzle.js - About 3 hrs to fix

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

                          send: function( headers, complete ) {
                              var i,
                                  xhr = options.xhr();
              
                              xhr.open(
              Severity: Major
              Found in src/ajax/xhr.js - About 3 hrs to fix

                File core.js has 294 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /* global Symbol */
                // Defining this global in .eslintrc.json would create a danger of using the global
                // unguarded in another place, it seems safer to define global only for this module
                
                define( [
                Severity: Minor
                Found in src/core.js - About 3 hrs to fix

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

                          sinon.wrapMethod = function wrapMethod(object, property, method) {
                              if (!object) {
                                  throw new TypeError("Should wrap property of object");
                              }
                  
                  
                  Severity: Major
                  Found in external/sinon/sinon.js - About 3 hrs to fix

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

                        function makeApi(sinon) {
                            var collection = {
                                verify: function resolve() {
                                    each(this, "verify");
                                },
                    Severity: Major
                    Found in external/sinon/sinon.js - About 3 hrs to fix

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

                          add: function( elem, types, handler, data, selector ) {
                      
                              var handleObjIn, eventHandle, tmp,
                                  events, t, handleObj,
                                  special, handlers, type, namespaces, origType,
                      Severity: Major
                      Found in src/event.js - About 2 hrs to fix

                        Function matcherFromGroupMatchers has 72 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 external/sizzle/dist/sizzle.js - About 2 hrs to fix

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

                                  return (function deepEqual(obj1, obj2, path1, path2) {
                                      var type1 = typeof obj1;
                                      var type2 = typeof obj2;
                          
                                      // == null also matches undefined
                          Severity: Major
                          Found in external/sinon/sinon.js - About 2 hrs to fix

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

                                                function resolve( depth, deferred, handler, special ) {
                                                    return function() {
                                                        var that = this,
                                                            args = arguments,
                                                            mightThrow = function() {
                            Severity: Major
                            Found in src/deferred.js - About 2 hrs to fix

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

                                          check: function () {
                                              if (!this.enabled || this.enabling) {
                                                  return;
                                              }
                              
                              
                              Severity: Major
                              Found in external/requirejs/require.js - About 2 hrs to fix

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

                                        function done( status, nativeStatusText, responses, headers ) {
                                            var isSuccess, success, error, response, modified,
                                                statusText = nativeStatusText;
                                
                                            // Ignore repeat invocations
                                Severity: Major
                                Found in src/ajax.js - About 2 hrs to fix

                                  Function configure has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              configure: function (cfg) {
                                                  //Make sure the baseUrl ends in a slash.
                                                  if (cfg.baseUrl) {
                                                      if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
                                                          cfg.baseUrl += '/';
                                  Severity: Major
                                  Found in external/requirejs/require.js - About 2 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                            if ( forward && useCache ) {
                                    
                                                                // Seek `elem` from a previously-cached index
                                    
                                                                // ...in a gzip-friendly way
                                    Severity: Critical
                                    Found in external/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 external/sizzle/dist/sizzle.js - About 2 hrs to fix

                                        Function superMatcher has 65 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 external/sizzle/dist/sizzle.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language