jquery/jquery

View on GitHub

Showing 157 of 157 total issues

Consider simplifying this complex logical expression.
Open

    if ( ( isIE && isBorderBox ||

        // Support: IE 10 - 11+, Edge 15 - 18+
        // IE/Edge misreport `getComputedStyle` of table rows with width/height
        // set in CSS while `offset*` properties report correct values.
Severity: Major
Found in src/css.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                if ( matcher[ expando ] ) {
    
                    // Find the next relative operator (if any) for proper handling
                    j = ++i;
                    for ( ; j < len; j++ ) {
    Severity: Major
    Found in src/selector.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
                      context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
      
                  context = ( Expr.find.ID(
                      token.matches[ 0 ].replace( runescape, funescape ),
      Severity: Major
      Found in src/selector.js - About 40 mins to fix

        Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            add: function( elem, types, handler, data, selector ) {
        Severity: Minor
        Found in src/event.js - About 35 mins to fix

          Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function Tween( elem, options, prop, end, easing ) {
          Severity: Minor
          Found in src/effects/Tween.js - About 35 mins to fix

            Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                remove: function( elem, types, handler, selector, mappedTypes ) {
            Severity: Minor
            Found in src/event.js - About 35 mins to fix

              Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function condense( unmatched, map, filter, context, xml ) {
              Severity: Minor
              Found in src/selector.js - About 35 mins to fix

                Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        superMatcher = function( seed, context, xml, results, outermost ) {
                Severity: Minor
                Found in src/selector.js - About 35 mins to fix

                  Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          CHILD: function( type, what, _argument, first, last ) {
                  Severity: Minor
                  Found in src/selector.js - About 35 mins to fix

                    Function buildFragment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function buildFragment( elems, context, scripts, selection, ignored ) {
                    Severity: Minor
                    Found in src/manipulation/buildFragment.js - About 35 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return ret == null ? undefined : ret;
                      Severity: Major
                      Found in src/attributes/attr.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return 0;
                        Severity: Major
                        Found in src/selector/uniqueSort.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return 0;
                          Severity: Major
                          Found in src/event.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                                return result === check || result.slice( 0, check.length + 1 ) === check + "-";
                            Severity: Major
                            Found in src/selector.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return this.each( function( i ) {
                                          var val;
                              
                                          if ( this.nodeType !== 1 ) {
                                              return;
                              Severity: Major
                              Found in src/attributes/val.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return root.ready !== undefined ?
                                                root.ready( selector ) :
                                
                                                // Execute immediately if ready is not present
                                                selector( jQuery );
                                Severity: Major
                                Found in src/core/init.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return elem[ name ];
                                  Severity: Major
                                  Found in src/attributes/prop.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return jQuery.makeArray( selector, this );
                                    Severity: Major
                                    Found in src/core/init.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                          return results;
                                      Severity: Major
                                      Found in src/selector.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return this;
                                        Severity: Major
                                        Found in src/core/init.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language