jquery/jquery

View on GitHub

Showing 255 of 255 total issues

Function processModule has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function processModule(name, options, executeNow) {
      var modifiers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};

      if (objectType(options) === "function") {
          executeNow = options;
Severity: Minor
Found in external/qunit/qunit.js - About 1 hr to fix

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

        function convert( name, path, contents ) {
            var amdName;
    
            // Convert var modules
            if ( /.\/var\//.test( path.replace( process.cwd(), "" ) ) ) {
    Severity: Minor
    Found in build/tasks/build.js - About 1 hr to fix

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

      function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
          var i = dimension === "width" ? 1 : 0,
              extra = 0,
              delta = 0;
      
      
      Severity: Minor
      Found in src/css.js - About 1 hr to fix

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

                                        mightThrow = function() {
                                            var returned, then;
        
                                            // Support: Promises/A+ section 2.3.3.3.3
                                            // https://promisesaplus.com/#point-59
        Severity: Minor
        Found in src/deferred.js - About 1 hr to fix

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

                          function localRequire(deps, callback, errback) {
                              var id, map, requireMod;
          
                              if (options.enableBuildCallback && callback && isFunction(callback)) {
                                  callback.__requireJsBuild = true;
          Severity: Minor
          Found in external/requirejs/require.js - About 1 hr to fix

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

                        excluder = function( flag ) {
                            var additional,
                                m = /^(\+|\-|)([\w\/-]+)$/.exec( flag ),
                                exclude = m[ 1 ] === "-",
                                module = m[ 2 ];
            Severity: Minor
            Found in build/tasks/build.js - About 1 hr to fix

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

                function done() {
                    var storage = config.storage;
              
                    ProcessingQueue.finished = true;
              
              
              Severity: Minor
              Found in external/qunit/qunit.js - About 1 hr to fix

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

                      DiffMatchPatch.prototype.diffCompute = function (text1, text2, checklines, deadline) {
                          var diffs, longtext, shorttext, i, hm, text1A, text2A, text1B, text2B, midCommon, diffsA, diffsB;
                
                          if (!text1) {
                
                
                Severity: Minor
                Found in external/qunit/qunit.js - About 1 hr to fix

                  Function Promise$2 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    var Promise$2 = function () {
                      function Promise(resolver) {
                        classCallCheck(this, Promise);
                  
                        this[PROMISE_ID] = nextId();
                  Severity: Minor
                  Found in external/qunit/qunit.js - About 1 hr to fix

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

                          DiffMatchPatch.prototype.diffLinesToChars = function (text1, text2) {
                              var lineArray, lineHash, chars1, chars2;
                              lineArray = []; // E.g. lineArray[4] === 'Hello\n'
                              lineHash = {}; // E.g. lineHash['Hello\n'] === 4
                    
                    
                    Severity: Minor
                    Found in external/qunit/qunit.js - About 1 hr to fix

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

                          setOffset: function( elem, options, i ) {
                              var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                                  position = jQuery.css( elem, "position" ),
                                  curElem = jQuery( elem ),
                                  props = {};
                      Severity: Minor
                      Found in src/offset.js - About 1 hr to fix

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

                                    completeLoad: function (moduleName) {
                                        var found, args, mod,
                                            shim = getOwn(config.shim, moduleName) || {},
                                            shExports = shim.exports;
                        
                        
                        Severity: Minor
                        Found in external/requirejs/require.js - About 1 hr to fix

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

                          function showHide( elements, show ) {
                              var display, elem,
                                  values = [],
                                  index = 0,
                                  length = elements.length;
                          Severity: Minor
                          Found in src/css/showHide.js - About 1 hr to fix

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

                                handlers: function( event, handlers ) {
                                    var i, handleObj, sel, matchedHandlers, matchedSelectors,
                                        handlerQueue = [],
                                        delegateCount = handlers.delegateCount,
                                        cur = event.target;
                            Severity: Minor
                            Found in src/event.js - About 1 hr to fix

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

                                    valid: function valid() {
                                        var filter = config.filter,
                                            regexFilter = /^(!?)\/([\w\W]*)\/(i?$)/.exec(filter),
                                            module = config.module && config.module.toLowerCase(),
                                            fullName = this.module.name + ": " + this.testName;
                              Severity: Minor
                              Found in external/qunit/qunit.js - About 1 hr to fix

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

                                function getWidthOrHeight( elem, dimension, extra ) {
                                
                                    // Start with computed style
                                    var styles = getStyles( elem ),
                                
                                
                                Severity: Minor
                                Found in src/css.js - About 1 hr to fix

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

                                          handler: function( event ) {
                                              var notAsync, result,
                                                  saved = dataPriv.get( this, type );
                                  
                                              if ( ( event.isTrigger & 1 ) && this[ type ] ) {
                                  Severity: Minor
                                  Found in src/event.js - About 1 hr to fix

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

                                      function invokeCallback(settled, promise, callback, detail) {
                                        var hasCallback = isFunction(callback),
                                            value = void 0,
                                            error = void 0,
                                            succeeded = void 0,
                                    Severity: Minor
                                    Found in external/qunit/qunit.js - About 1 hr to fix

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

                                            DiffMatchPatch.prototype.DiffMain = function (text1, text2, optChecklines) {
                                                var deadline, checklines, commonlength, commonprefix, commonsuffix, diffs;
                                      
                                                // The diff must be complete in up to 1 second.
                                                deadline = new Date().getTime() + 1000;
                                      Severity: Minor
                                      Found in external/qunit/qunit.js - About 1 hr to fix

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

                                                    nameToUrl: function (moduleName, ext, skipExt) {
                                                        var paths, syms, i, parentModule, url,
                                                            parentPath, bundleId,
                                                            pkgMain = getOwn(config.pkgs, moduleName);
                                        
                                        
                                        Severity: Minor
                                        Found in external/requirejs/require.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language