jquery/jquery

View on GitHub

Function exports has 190 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function( grunt ) {
    "use strict";

    function readOptionalJSON( filepath ) {
        var stripJSONComments = require( "strip-json-comments" ),
Severity: Major
Found in Gruntfile.js - About 7 hrs to fix

    Function equiv has 185 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    QUnit.equiv = (function() {
    
        // Stack to decide between skip/abort functions
        var callers = [];
    
    
    Severity: Major
    Found in external/qunit/qunit.js - About 7 hrs to fix

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

          Deferred: function( func ) {
              var tuples = [
      
                      // action, add listener, callbacks,
                      // ... .then handlers, argument index, [final state]
      Severity: Major
      Found in src/deferred.js - About 7 hrs to fix

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

            function makeApi(sinon) {
                function throwYieldError(proxy, text, args) {
                    var msg = sinon.functionName(proxy) + text;
                    if (args.length) {
                        msg += " Received [" + slice.call(args).join(", ") + "]";
        Severity: Major
        Found in external/sinon/sinon.js - About 6 hrs to fix

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

              function makeApi(sinon) {
                  var assert;
          
                  function verifyIsStub() {
                      var method;
          Severity: Major
          Found in external/sinon/sinon.js - About 5 hrs to fix

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

                function makeApi(sinon) {
                    sinon.xdr = xdr;
            
                    function FakeXDomainRequest() {
                        this.readyState = FakeXDomainRequest.UNSENT;
            Severity: Major
            Found in external/sinon/sinon.js - About 5 hrs to fix

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

                  function makeApi(sinon) {
                      sinon.fakeServer = {
                          create: function (config) {
                              var server = sinon.create(this);
                              server.configure(config);
              Severity: Major
              Found in external/sinon/sinon.js - About 5 hrs to fix

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

                function defaultPrefilter( elem, props, opts ) {
                    var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
                        isBox = "width" in props || "height" in props,
                        anim = this,
                        orig = {},
                Severity: Major
                Found in src/effects.js - About 4 hrs to fix

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

                  jQuery.Callbacks = function( options ) {
                  
                      // Convert options from String-formatted to Object-formatted if needed
                      // (we check in cache first)
                      options = typeof options === "string" ?
                  Severity: Major
                  Found in src/callbacks.js - About 4 hrs to fix

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

                        function makeApi(sinon) {
                            function stub(object, property, func) {
                                if (!!func && typeof func !== "function" && typeof func !== "object") {
                                    throw new TypeError("Custom stub should be a function or a property descriptor");
                                }
                    Severity: Major
                    Found in external/sinon/sinon.js - About 4 hrs to fix

                      Function diffCleanupMerge has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          DiffMatchPatch.prototype.diffCleanupMerge = function( diffs ) {
                              var pointer, countDelete, countInsert, textInsert, textDelete,
                                  commonlength, changes, diffPointer, position;
                              diffs.push( [ DIFF_EQUAL, "" ] ); // Add a dummy entry at the end.
                              pointer = 0;
                      Severity: Major
                      Found in external/qunit/qunit.js - About 4 hrs to fix

                        File manipulation.js has 348 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        define( [
                            "./core",
                            "./var/concat",
                            "./var/push",
                            "./core/access",
                        Severity: Minor
                        Found in src/manipulation.js - About 4 hrs to fix

                          Function then has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                          then: function( onFulfilled, onRejected, onProgress ) {
                                              var maxDepth = 0;
                                              function resolve( depth, deferred, handler, special ) {
                                                  return function() {
                                                      var that = this,
                          Severity: Major
                          Found in src/deferred.js - About 4 hrs to fix

                            Function exports has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            module.exports = function( Release, files, complete ) {
                            
                                var
                                    fs = require( "fs" ),
                                    shell = require( "shelljs" ),
                            Severity: Major
                            Found in build/release/dist.js - About 4 hrs to fix

                              Function createClock has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function createClock(now) {
                                      var clock = {
                                          now: getEpoch(now),
                                          timeouts: {},
                                          Date: createDate()
                              Severity: Major
                              Found in external/sinon/sinon.js - About 3 hrs to fix

                                Function deepEqualCyclic has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function deepEqualCyclic(obj1, obj2) {
                                
                                        // used for cyclic comparison
                                        // contain already visited objects
                                        var objects1 = [],
                                Severity: Major
                                Found in external/sinon/sinon.js - About 3 hrs to fix

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

                                  function Animation( elem, properties, options ) {
                                      var result,
                                          stopped,
                                          index = 0,
                                          length = Animation.prefilters.length,
                                  Severity: Major
                                  Found in src/effects.js - About 3 hrs to fix

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

                                                callPlugin: function () {
                                                    var map = this.map,
                                                        id = map.id,
                                                        //Map already normalized the prefix.
                                                        pluginMap = makeModuleMap(map.prefix);
                                    Severity: Major
                                    Found in external/requirejs/require.js - About 3 hrs to fix

                                      Function diffCleanupSemantic has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          DiffMatchPatch.prototype.diffCleanupSemantic = function( diffs ) {
                                              var changes, equalities, equalitiesLength, lastequality,
                                                  pointer, lengthInsertions2, lengthDeletions2, lengthInsertions1,
                                                  lengthDeletions1, deletion, insertion, overlapLength1, overlapLength2;
                                              changes = false;
                                      Severity: Major
                                      Found in external/qunit/qunit.js - About 3 hrs to fix

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

                                            trigger: function( event, data, elem, onlyHandlers ) {
                                        
                                                var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
                                                    eventPath = [ elem || document ],
                                                    type = hasOwn.call( event, "type" ) ? event.type : event,
                                        Severity: Major
                                        Found in src/event/trigger.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status