arey/angular-musicbrainz

View on GitHub

Showing 290 of 632 total issues

Avoid deeply nested control flow statements.
Open

          if (handler.comment) handler.comment( html.substring( 4, index ) );
Severity: Major
Found in app/lib/angular-sanitize/angular-sanitize.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 init has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          init: function( elem, options, prop, end, easing, unit ) {
      Severity: Minor
      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

                                  for ( j = 0; (type = events[j]) !== undefined; j++ ) {
                                      if ( special[ type ] ) {
                                          jQuery.event.remove( elem, type );
          
                                      // This is a shortcut to avoid jQuery.event.remove's overhead
          Severity: Major
          Found in app/lib/jquery/jquery.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if ( (elem = matcherOut[i]) ) {
                                        // Restore matcherIn since elem is not yet a final match
                                        temp.push( (matcherIn[i] = elem) );
                                    }
            Severity: Major
            Found in app/lib/jquery/jquery.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
                                          cur = cur.replace( " " + clazz + " ", " " );
                                      }
              Severity: Major
              Found in app/lib/jquery/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if ( Expr.relative[ tokens[j].type ] ) {
                                        break;
                                    }
                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 (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 ( 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 (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

                                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

                                  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 Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      function Tween( elem, options, prop, end, easing ) {
                                      Severity: Minor
                                      Found in app/lib/jquery/jquery.js - About 35 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language