jquery/jquery

View on GitHub

Showing 155 of 155 total issues

File selector.js has 1081 lines of code (exceeds 250 allowed). Consider refactoring.
Open

define( [
    "./core",
    "./var/document",
    "./var/documentElement",
    "./var/indexOf",
Severity: Major
Found in src/selector.js - About 2 days to fix

    Function exports has 269 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

        File event.js has 572 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

          File effects.js has 533 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

            File ajax.js has 507 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 exports has 202 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

                Function Deferred has 179 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 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

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

                      define( [
                          "./core",
                          "./core/isAttached",
                          "./var/concat",
                          "./var/isIE",
                      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 97 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 3 hrs to fix

                            Function Animation has 95 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 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

                                Function find has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function find( 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 src/selector.js - About 2 hrs to fix

                                  Function CHILD has 73 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 src/selector.js - About 2 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 71 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 src/selector.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language