diffux/diffux

View on GitHub

Showing 229 of 579 total issues

Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    off: function( types, selector, fn ) {
        var handleObj, type;
        if ( types && types.preventDefault && types.handleObj ) {
            // ( event )  dispatched jQuery.Event
            handleObj = types.handleObj;
Severity: Minor
Found in bower_components/jquery/src/event.js - About 1 hr to fix

    Function * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            "*": [ function( prop, value ) {
                var tween = this.createTween( prop, value ),
                    target = tween.cur(),
                    parts = rfxnum.exec( value ),
                    unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
    Severity: Minor
    Found in bower_components/jquery/src/effects.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

              if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                      support.getById && context.nodeType === 9 && documentIsHTML &&
                      Expr.relative[ tokens[1].type ] ) {
      
                  context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
      Severity: Major
      Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                        support.getById && context.nodeType === 9 && documentIsHTML &&
                        Expr.relative[ tokens[1].type ] ) {
        
                    context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
        Severity: Major
        Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

          Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
          Severity: Major
          Found in bower_components/jquery/dist/jquery.js - About 50 mins to fix

            Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
            Severity: Major
            Found in bower_components/jquery/src/core/access.js - About 50 mins to fix

              Function setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
              Severity: Minor
              Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if ( hasScripts ) {
                                            // Support: QtWebKit
                                            // jQuery.merge because push.apply(_, arraylike) throws
                                            jQuery.merge( scripts, getAll( node, "script" ) );
                                        }
                Severity: Major
                Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          for ( type in data.events ) {
                                              if ( special[ type ] ) {
                                                  jQuery.event.remove( elem, type );
                  
                                              // This is a shortcut to avoid jQuery.event.remove's overhead
                  Severity: Major
                  Found in bower_components/jquery/src/manipulation.js - About 45 mins to fix

                    Function setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                    Severity: Minor
                    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if ( copyIsArray ) {
                                              copyIsArray = false;
                                              clone = src && jQuery.isArray(src) ? src : [];
                      
                                          } else {
                      Severity: Major
                      Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                for ( match in context ) {
                                                    // Properties of context are called as methods if possible
                                                    if ( jQuery.isFunction( this[ match ] ) ) {
                                                        this[ match ]( context[ match ] );
                        
                        
                        Severity: Major
                        Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ( attrs[ i ] ) {
                                                      name = attrs[ i ].name;
                                                      if ( name.indexOf( "data-" ) === 0 ) {
                                                          name = jQuery.camelCase( name.slice(5) );
                                                          dataAttr( elem, name, data[ name ] );
                          Severity: Major
                          Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ( matches[ sel ] === undefined ) {
                                                        matches[ sel ] = handleObj.needsContext ?
                                                            jQuery( sel, this ).index( cur ) >= 0 :
                                                            jQuery.find( sel, this, null, [ cur ] ).length;
                                                    }
                            Severity: Major
                            Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      for ( type in data.events ) {
                                                          if ( special[ type ] ) {
                                                              jQuery.event.remove( elem, type );
                              
                                                          // This is a shortcut to avoid jQuery.event.remove's overhead
                              Severity: Major
                              Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                            cur += clazz + " ";
                                                        }
                                Severity: Major
                                Found in bower_components/jquery/src/attributes/classes.js - About 45 mins to fix

                                  Function init has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      init: function( elem, options, prop, end, easing, unit ) {
                                  Severity: Minor
                                  Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if ( !(unmatched[i] || setMatched[i]) ) {
                                                                    setMatched[i] = pop.call( results );
                                                                }
                                    Severity: Major
                                    Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if ( !selector ) {
                                                              push.apply( results, seed );
                                                              return results;
                                                          }
                                      Severity: Major
                                      Found in bower_components/jquery/dist/jquery.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                  if (element.data('params')) data = data + "&" + element.data('params');
                                        Severity: Major
                                        Found in bower_components/jquery-ujs/src/rails.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language