arey/angular-musicbrainz

View on GitHub

Showing 290 of 632 total issues

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 app/lib/jquery/jquery.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
                            contains( context, elem ) && elem.id === m ) {
                            results.push( elem );
                            return results;
                        }
    Severity: Major
    Found in app/lib/jquery/jquery.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
                                          // Cache the index of each encountered element
                                          if ( useCache ) {
                                              (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
                                          }
      Severity: Major
      Found in app/lib/jquery/jquery.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                if ( match ) {
                  html = html.replace( match[0] , '');
                  chars = false;
                }
        Severity: Major
        Found in app/lib/angular-sanitize/angular-sanitize.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 app/lib/jquery/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 app/lib/jquery/jquery.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

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

                Avoid deeply nested control flow statements.
                Open

                                        if ( matches[ sel ] ) {
                                            matches.push( handleObj );
                                        }
                Severity: Major
                Found in app/lib/jquery/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                  if (angular.isFunction(templateUrl)) {
                                    templateUrl = templateUrl(next.params);
                                  }
                  Severity: Major
                  Found in app/lib/angular-route/angular-route.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                    if (angular.isDefined(templateUrl)) {
                                      next.loadedTemplateUrl = templateUrl;
                                      template = $http.get(templateUrl, {cache: $templateCache}).
                                          then(function(response) { return response.data; });
                                    }
                    Severity: Major
                    Found in app/lib/angular-route/angular-route.js - About 45 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                          if ( support.matchesSelector && documentIsHTML &&
                              ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                              ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                      
                              try {
                      Severity: Major
                      Found in app/lib/jquery/jquery.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 app/lib/jquery/jquery.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                  if ( s.crossDomain == null ) {
                                      parts = rurl.exec( s.url.toLowerCase() );
                                      s.crossDomain = !!( parts &&
                                          ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                                              ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
                          Severity: Major
                          Found in app/lib/jquery/jquery.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                  if (next && last && next.$$route === last.$$route
                                      && angular.equals(next.pathParams, last.pathParams)
                                      && !next.reloadOnSearch && !forceReload) {
                                    last.params = next.params;
                                    angular.copy(last.params, $routeParams);
                            Severity: Major
                            Found in app/lib/angular-route/angular-route.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                    if (autoPlace) {
                                      var $parent = this.$element.parent()
                              
                                      var orgPlacement = placement
                                      var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
                              Severity: Major
                              Found in app/lib/bootstrap/js/tooltip.js - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                      if (autoPlace) {
                                        var $parent = this.$element.parent()
                                
                                        var orgPlacement = placement
                                        var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
                                Severity: Major
                                Found in app/lib/bootstrap/dist/js/bootstrap.js - About 40 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 app/lib/jquery/jquery.js - About 35 mins to fix

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

                                        link: function(scope, $element, attr, ctrl, $transclude) {
                                    Severity: Minor
                                    Found in app/lib/angular-route/angular-route.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 app/lib/jquery/jquery.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 app/lib/jquery/jquery.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language