jquery/jquery

View on GitHub

Showing 196 of 374 total issues

Consider simplifying this complex logical expression.
Open

    if ( ( isBorderBox && !support.boxSizingReliable() || val === "auto" ||
        !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) &&
        elem.getClientRects().length ) {

        // Where available, offsetWidth/offsetHeight approximate border box dimensions.
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++ ) {
                        if ( Expr.relative[ tokens[j].type ] ) {
    Severity: Major
    Found in external/sizzle/dist/sizzle.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                          if (deepStringMixin && typeof value === 'object' && value &&
                              !isArray(value) && !isFunction(value) &&
                              !(value instanceof RegExp)) {
      
                              if (!target[prop]) {
      Severity: Major
      Found in external/requirejs/require.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), context ) || [] )[0];
                    if ( !context ) {
        Severity: Major
        Found in external/sizzle/dist/sizzle.js - About 40 mins to fix

          Avoid too many return statements within this function.
          Open

              return data;
          Severity: Major
          Found in src/data.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 sortInput ?
                          ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
                          0;
              Severity: Major
              Found in src/selector-native.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

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

                  Avoid too many return statements within this function.
                  Open

                                  return this.constructor( context ).find( selector );
                  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 compare & 4 ? -1 : 1;
                      Severity: Major
                      Found in src/selector-native.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

                          Avoid too many return statements within this function.
                          Open

                                      return value;
                          Severity: Major
                          Found in src/attributes/attr.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 event.which;
                              Severity: Major
                              Found in src/event.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return JSON.parse( data );
                                Severity: Major
                                Found in src/data.js - About 30 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 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 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

                                                if (!object) { return String((1/object) === -Infinity ? "-0" : object); }
                                        Severity: Major
                                        Found in external/sinon/sinon.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language