dhgwilliam/google-voice-stats

View on GitHub

Showing 231 of 371 total issues

Avoid deeply nested control flow statements.
Open

                    if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
                        conv2 = converters[ tmp[1] + " " + current ];
                        if ( conv2 ) {
                            conv1 = converters[ conv1 ];
                            if ( conv1 === true ) {
Severity: Major
Found in public/js/jquery.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                        if ( !status && s.isLocal && !s.crossDomain ) {
                                            status = responses.text ? 200 : 404;
                                        // IE - #1450: sometimes returns 1223 when it should be 204
                                        } else if ( status === 1223 ) {
                                            status = 204;
    Severity: Major
    Found in public/js/jquery.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 public/js/jquery.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ( elem && elem.parentNode ) {
                                    // Handle the case where IE and Opera return items
                                    // by name instead of ID
                                    if ( elem.id === match[3] ) {
                                        return makeArray( [ elem ], extra );
        Severity: Major
        Found in public/js/jquery.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 public/js/jquery.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            } else if ( copy !== undefined ) {
                                target[ name ] = copy;
                            }
            Severity: Major
            Found in public/js/jquery.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 public/js/jquery.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 public/js/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if ( jQuery.isPlainObject( context ) ) {
                                              selector = [ document.createElement( ret[1] ) ];
                                              jQuery.fn.attr.call( selector, context, true );
                  
                                          } else {
                  Severity: Major
                  Found in public/js/jquery.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if ( elem.id !== match[2] ) {
                                                return rootjQuery.find( selector );
                                            }
                    Severity: Major
                    Found in public/js/jquery.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if ( ret === false ) {
                                                  event.preventDefault();
                                                  event.stopPropagation();
                                              }
                      Severity: Major
                      Found in public/js/jquery.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if ( !old ) {
                                                    oldContext.removeAttribute( "id" );
                                                }
                        Severity: Major
                        Found in public/js/jquery.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  for ( j = tbody.length - 1; j >= 0 ; --j ) {
                                                      if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                          tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                      }
                                                  }
                          Severity: Major
                          Found in public/js/jquery.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

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

                              Avoid deeply nested control flow statements.
                              Open

                                                              if ( flags.unique ) {
                                                                  break;
                                                              }
                              Severity: Major
                              Found in public/js/jquery.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( name.indexOf( "data-" ) === 0 ) {
                                                            name = jQuery.camelCase( name.substring(5) );
                                
                                                            dataAttr( this[0], name, data[ name ] );
                                                        }
                                Severity: Major
                                Found in public/js/jquery.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                                              if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
                                                                  setClass += classNames[ c ] + " ";
                                                              }
                                                          }
                                  Severity: Major
                                  Found in public/js/jquery.js - About 45 mins to fix

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

                                      function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {
                                    Severity: Minor
                                    Found in public/js/d3.v2.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      if ( firing ) {
                                                                          if ( i <= firingLength ) {
                                                                              firingLength--;
                                                                              if ( i <= firingIndex ) {
                                                                                  firingIndex--;
                                      Severity: Major
                                      Found in public/js/jquery.js - About 45 mins to fix

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

                                            function insertChild(n, p, x1, y1, x2, y2) {
                                        Severity: Minor
                                        Found in public/js/d3.v2.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language