arey/angular-musicbrainz

View on GitHub

Showing 290 of 632 total issues

Function checkPosition has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Affix.prototype.checkPosition = function () {
    if (!this.$element.is(':visible')) return

    var scrollHeight = $(document).height()
    var scrollTop    = this.$window.scrollTop()
Severity: Minor
Found in app/lib/bootstrap/js/affix.js - About 1 hr to fix

    Function backdrop has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Modal.prototype.backdrop = function (callback) {
        var animate = this.$element.hasClass('fade') ? 'fade' : ''
    
        if (this.isShown && this.options.backdrop) {
          var doAnimate = $.support.transition && animate
    Severity: Minor
    Found in app/lib/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

      Function backdrop has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        Modal.prototype.backdrop = function (callback) {
          var animate = this.$element.hasClass('fade') ? 'fade' : ''
      
          if (this.isShown && this.options.backdrop) {
            var doAnimate = $.support.transition && animate
      Severity: Minor
      Found in app/lib/bootstrap/js/modal.js - About 1 hr to fix

        Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            finish: function( type ) {
                if ( type !== false ) {
                    type = type || "fx";
                }
                return this.each(function() {
        Severity: Minor
        Found in app/lib/jquery/jquery.js - About 1 hr to fix

          Function $ExceptionHandlerProvider has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          angular.mock.$ExceptionHandlerProvider = function() {
            var handler;
          
            /**
             * @ngdoc method
          Severity: Minor
          Found in app/lib/angular-mocks/angular-mocks.js - About 1 hr to fix

            Function fix has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                fix: function( event ) {
                    if ( event[ jQuery.expando ] ) {
                        return event;
                    }
            
            
            Severity: Minor
            Found in app/lib/jquery/jquery.js - About 1 hr to fix

              Function clean has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  jQuery.clean = function( elems, context, fragment, scripts ) {
                      // Set context per 1.8 logic
                      context = context || document;
                      context = !context.nodeType && context[0] || context;
                      context = context.ownerDocument || context;
              Severity: Minor
              Found in app/lib/jquery/jquery-migrate.js - About 1 hr to fix

                Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function propFilter( props, specialEasing ) {
                    var index, name, easing, value, hooks;
                
                    // camelCase, specialEasing and expand cssHook pass
                    for ( index in props ) {
                Severity: Minor
                Found in app/lib/jquery/jquery.js - About 1 hr to fix

                  Function clone has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                          var i, l, srcElements, destElements,
                              clone = elem.cloneNode( true ),
                              inPage = jQuery.contains( elem.ownerDocument, elem );
                  
                  
                  Severity: Minor
                  Found in app/lib/jquery/jquery.js - About 1 hr to fix

                    Function activate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      Tab.prototype.activate = function (element, container, callback) {
                        var $active    = container.find('> .active')
                        var transition = callback
                          && $.support.transition
                          && $active.hasClass('fade')
                    Severity: Minor
                    Found in app/lib/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

                      Function activate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        Tab.prototype.activate = function (element, container, callback) {
                          var $active    = container.find('> .active')
                          var transition = callback
                            && $.support.transition
                            && $active.hasClass('fade')
                      Severity: Minor
                      Found in app/lib/bootstrap/js/tab.js - About 1 hr to fix

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

                            offset: function( options ) {
                                if ( arguments.length ) {
                                    return options === undefined ?
                                        this :
                                        this.each(function( i ) {
                        Severity: Minor
                        Found in app/lib/jquery/jquery.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 app/lib/jquery/jquery.js - About 1 hr to fix

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

                              function serialize(object) {
                                var out;
                            
                                if (angular.isElement(object)) {
                                  object = angular.element(object);
                            Severity: Minor
                            Found in app/lib/angular-mocks/angular-mocks.js - About 1 hr to fix

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

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

                                      var getMatchesAsync = function(inputValue) {
                                
                                        var locals = {$viewValue: inputValue};
                                        isLoadingSetter(originalScope, true);
                                        $q.when(parserResult.source(originalScope, locals)).then(function(matches) {
                                Severity: Minor
                                Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

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

                                        var getMatchesAsync = function(inputValue) {
                                  
                                          var locals = {$viewValue: inputValue};
                                          isLoadingSetter(originalScope, true);
                                          $q.when(parserResult.source(originalScope, locals)).then(function(matches) {
                                  Severity: Minor
                                  Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 1 hr to fix

                                    Function $get has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                          function($rootScope, $location, $routeParams, $q, $injector, $http, $templateCache, $sce) {
                                    Severity: Major
                                    Found in app/lib/angular-route/angular-route.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 app/lib/jquery/jquery.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                          "pluralCat": function (n) {  if (n % 10 == 1 && n % 100 != 11) {   return PLURAL_CATEGORY.ONE;  }  if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) {   return PLURAL_CATEGORY.FEW;  }  if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) {   return PLURAL_CATEGORY.MANY;  }  return PLURAL_CATEGORY.OTHER;}
                                        Severity: Major
                                        Found in app/lib/angular-i18n/angular-locale_ru-ru.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language