brynary/rack-bug

View on GitHub

Showing 67 of 86 total issues

Avoid deeply nested control flow statements.
Open

                            for ( var handle in events[type] )
                                // Handle the removal of namespaced events
                                if ( namespace.test(events[type][handle].type) )
                                    delete events[type][handle];
Severity: Major
Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

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

            ATTR: function(match, curLoop, inplace, result, not, isXML){
    Severity: Minor
    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ( !isXML ) {
                              elem.sizcache = doneName;
                              elem.sizset = i;
                          }
      Severity: Major
      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if ( !match ) {
                                anyFound = found = true;
                            } else if ( match === true ) {
                                continue;
                            }
        Severity: Major
        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
                                  if ( item ) {
                                      found = filter( item, match, i, curLoop );
                                      var pass = not ^ !!found;
          
          
          Severity: Major
          Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if ( display === "none" )
                                        display = "block";
            Severity: Major
            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

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

                      CLASS: function(match, curLoop, inplace, result, not, isXML){
              Severity: Minor
              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

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

                function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                Severity: Minor
                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if ( typeof cur !== "string" ) {
                                          if ( elem === cur ) {
                                              match = true;
                                              break;
                                          }
                  Severity: Major
                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 45 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ( s.dataType == "script" && type == "GET" && parts
                                && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
                    
                                var head = document.getElementsByTagName("head")[0];
                                var script = document.createElement("script");
                    Severity: Major
                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 40 mins to fix

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

                          prop: function( elem, value, type, i, name ) {
                      Severity: Minor
                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 35 mins to fix

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

                                PSEUDO: function(match, curLoop, inplace, result, not){
                        Severity: Minor
                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 35 mins to fix

                          Method send_message_with_safe_check_with_rack_bug has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def send_message_with_safe_check_with_rack_bug(operation, message, db_name, log_message=nil, last_error_params=false)
                          Severity: Minor
                          Found in lib/rack/bug/panels/mongo_panel/mongo_extension.rb - About 35 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return this.each(function(){
                                        if ( this.nodeType != 1 )
                                            return;
                            
                                        if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
                            Severity: Major
                            Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return this.setArray(jQuery.isArray( selector ) ?
                                          selector :
                                          jQuery.makeArray(selector));
                              Severity: Major
                              Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                        return diff == 0;
                                Severity: Major
                                Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return jQuery.attr( elem.style, "cssText", value );
                                  Severity: Major
                                  Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
                                                    (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
                                                    "";
                                    Severity: Major
                                    Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return elem[ name ];
                                      Severity: Major
                                      Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return jQuery( document ).ready( selector );
                                        Severity: Major
                                        Found in lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language