jquery/jquery

View on GitHub

Showing 311 of 365 total issues

File sinon.js has 4738 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Sinon.JS 1.17.3, 2016/01/27
 *
 * @author Christian Johansen (christian@cjohansen.no)
 * @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
Severity: Major
Found in external/sinon/sinon.js - About 1 wk to fix

    File qunit.js has 2952 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * QUnit 1.20.0
     * http://qunitjs.com/
     *
     * Copyright jQuery Foundation and other contributors
    Severity: Major
    Found in external/qunit/qunit.js - About 1 wk to fix

      Function newContext has 976 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function newContext(contextName) {
              var inCheckLoaded, Module, context, handlers,
                  checkLoadedTimeoutId,
                  config = {
                      //Defaults. Do not set a default for map
      Severity: Major
      Found in external/requirejs/require.js - About 4 days to fix

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

        /*!
         * Sizzle CSS Selector Engine v2.3.3
         * https://sizzlejs.com/
         *
         * Copyright jQuery Foundation and other contributors
        Severity: Major
        Found in external/sizzle/dist/sizzle.js - About 3 days to fix

          Function diff has 732 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          QUnit.diff = ( function() {
              function DiffMatchPatch() {
              }
          
              //  DIFF FUNCTIONS
          Severity: Major
          Found in external/qunit/qunit.js - About 3 days to fix

            File require.js has 1298 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /** vim: et:ts=4:sw=4:sts=4
             * @license RequireJS 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
             * Available via the MIT or new BSD license.
             * see: http://github.com/jrburke/requirejs for details
             */
            Severity: Major
            Found in external/requirejs/require.js - About 3 days to fix

              Function 1 has 410 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.lolex=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
              (function (global){
              /*global global, window*/
              /**
               * @author Christian Johansen (christian@cjohansen.no) and contributors
              Severity: Major
              Found in external/sinon/sinon.js - About 2 days to fix

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

                    function makeApi(sinon) {
                        var push = Array.prototype.push;
                        var slice = Array.prototype.slice;
                        var callId = 0;
                
                
                Severity: Major
                Found in external/sinon/sinon.js - About 1 day to fix

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

                      function makeApi(sinon) {
                          var push = [].push;
                          var match = sinon.match;
                  
                          function mock(object) {
                  Severity: Major
                  Found in external/sinon/sinon.js - About 1 day to fix

                    Function ajax has 251 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        ajax: function( url, options ) {
                    
                            // If url is an object, simulate pre-1.5 signature
                            if ( typeof url === "object" ) {
                                options = url;
                    Severity: Major
                    Found in src/ajax.js - About 1 day to fix

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

                      setDocument = Sizzle.setDocument = function( node ) {
                          var hasCompare, subWindow,
                              doc = node ? node.ownerDocument || node : preferredDoc;
                      
                          // Return early if doc is invalid or already selected
                      Severity: Major
                      Found in external/sizzle/dist/sizzle.js - About 1 day to fix

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

                            function makeApi(sinon) {
                                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 1 day to fix

                          File effects.js has 534 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          define( [
                              "./core",
                              "./var/document",
                              "./var/rcssNum",
                              "./var/rnothtmlwhite",
                          Severity: Major
                          Found in src/effects.js - About 1 day to fix

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

                                function makeApi(sinon) {
                                    sinon.xhr = sinonXhr;
                            
                                    sinon.extend(FakeXMLHttpRequest.prototype, sinon.EventTarget, {
                                        async: true,
                            Severity: Major
                            Found in external/sinon/sinon.js - About 1 day to fix

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

                              module.exports = function( grunt ) {
                              
                                  "use strict";
                              
                                  var fs = require( "fs" ),
                              Severity: Major
                              Found in build/tasks/build.js - About 1 day to fix

                                File event.js has 520 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                define( [
                                    "./core",
                                    "./var/document",
                                    "./var/documentElement",
                                    "./var/rnothtmlwhite",
                                Severity: Major
                                Found in src/event.js - About 1 day to fix

                                  Function dump has 210 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  QUnit.dump = (function() {
                                      function quote( str ) {
                                          return "\"" + str.toString().replace( /\\/g, "\\\\" ).replace( /"/g, "\\\"" ) + "\"";
                                      }
                                      function literal( o ) {
                                  Severity: Major
                                  Found in external/qunit/qunit.js - About 1 day to fix

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

                                        function makeApi(sinon) {
                                            function getCallbackError(behavior, func, args) {
                                                if (behavior.callArgAt < 0) {
                                                    var msg;
                                    
                                    
                                    Severity: Major
                                    Found in external/sinon/sinon.js - About 1 day to fix

                                      File ajax.js has 505 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      define( [
                                          "./core",
                                          "./var/document",
                                          "./var/rnothtmlwhite",
                                          "./ajax/var/location",
                                      Severity: Major
                                      Found in src/ajax.js - About 1 day to fix

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

                                            function makeApi(sinon) {
                                                function assertType(value, type, name) {
                                                    var actual = sinon.typeOf(value);
                                                    if (actual !== type) {
                                                        throw new TypeError("Expected type of " + name + " to be " +
                                        Severity: Major
                                        Found in external/sinon/sinon.js - About 7 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source