jquery/jquery

View on GitHub

Showing 260 of 260 total issues

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

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

    Function newContext has 981 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

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

        /** vim: et:ts=4:sw=4:sts=4
         * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
         * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
         */
        //Not using strict: uneven strict support in browsers, #392, and causes
        Severity: Major
        Found in external/requirejs/require.js - About 3 days to fix

          Function diff has 632 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

            Function Assert has 327 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var Assert = function () {
                  function Assert(testContext) {
                      classCallCheck(this, Assert);
            
                      this.test = testContext;
            Severity: Major
            Found in external/qunit/qunit.js - About 1 day to fix

              Function exports has 271 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 1 day to fix

                Function ajax has 253 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 dump has 222 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      var 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

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

                      define( [
                          "./core",
                          "./core/camelCase",
                          "./var/document",
                          "./var/isFunction",
                      Severity: Major
                      Found in src/effects.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 523 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

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

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

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

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

                                var equiv = (function () {
                              
                                    // Value pairs queued for comparison. Used for breadth-first processing order, recursion
                                    // detection and avoiding repeated comparison (see below for details).
                                    // Elements are { a: val, b: val }.
                              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 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 toolbarModuleFilter has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          function toolbarModuleFilter() {
                                              var commit,
                                                  reset,
                                                  moduleFilter = document.createElement("form"),
                                                  label = document.createElement("label"),
                                    Severity: Major
                                    Found in external/qunit/qunit.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 SuiteReport has 112 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          var SuiteReport = function () {
                                              function SuiteReport(name, parentSuite) {
                                                  classCallCheck(this, SuiteReport);
                                        
                                                  this.name = name;
                                        Severity: Major
                                        Found in external/qunit/qunit.js - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language