arey/angular-musicbrainz

View on GitHub

Showing 290 of 632 total issues

Function link has 162 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    link: function(originalScope, element, attrs, ngModel) {
      var scope = originalScope.$new(), // create a child scope so we are not polluting original one
          dateFormat,
          closeOnDateSelection = angular.isDefined(attrs.closeOnDateSelection) ? originalScope.$eval(attrs.closeOnDateSelection) : datepickerPopupConfig.closeOnDateSelection,
          appendToBody = angular.isDefined(attrs.datepickerAppendToBody) ? originalScope.$eval(attrs.datepickerAppendToBody) : datepickerPopupConfig.appendToBody;
Severity: Major
Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 6 hrs to fix

    Function link has 161 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              return function link ( scope, element, attrs ) {
                var tooltip;
                var transitionTimeout;
                var popupTimeout;
                var appendToBody = angular.isDefined( options.appendToBody ) ? options.appendToBody : false;
    Severity: Major
    Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 6 hrs to fix

      Function link has 161 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                return function link ( scope, element, attrs ) {
                  var tooltip;
                  var transitionTimeout;
                  var popupTimeout;
                  var appendToBody = angular.isDefined( options.appendToBody ) ? options.appendToBody : false;
      Severity: Major
      Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 6 hrs to fix

        Function link has 158 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            link:function (originalScope, element, attrs, modelCtrl) {
        
              //SUPPORTED ATTRIBUTES (OPTIONS)
        
              //minimal no of characters that needs to be entered before typeahead kicks-in
        Severity: Major
        Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 6 hrs to fix

          Function link has 158 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              link:function (originalScope, element, attrs, modelCtrl) {
          
                //SUPPORTED ATTRIBUTES (OPTIONS)
          
                //minimal no of characters that needs to be entered before typeahead kicks-in
          Severity: Major
          Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 6 hrs to fix

            Function createHttpBackendMock has 140 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function createHttpBackendMock($rootScope, $delegate, $browser) {
              var definitions = [],
                  expectations = [],
                  responses = [],
                  responsesPush = angular.bind(responses, responses.push),
            Severity: Major
            Found in app/lib/angular-mocks/angular-mocks.js - About 5 hrs to fix

              Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              jQuery.Callbacks = function( options ) {
              
                  // Convert options from String-formatted to Object-formatted if needed
                  // (we check in cache first)
                  options = typeof options === "string" ?
              Severity: Major
              Found in app/lib/jquery/jquery.js - About 5 hrs to fix

                File jquery-migrate.js has 379 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*!
                 * jQuery Migrate - v1.2.1 - 2013-05-08
                 * https://github.com/jquery/jquery-migrate
                 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
                 */
                Severity: Minor
                Found in app/lib/jquery/jquery-migrate.js - About 5 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if ( event.pageX == null && original.clientX != null ) {
                                  eventDoc = event.target.ownerDocument || document;
                                  doc = eventDoc.documentElement;
                                  body = eventDoc.body;
                  
                  
                  Severity: Critical
                  Found in app/lib/jquery/jquery.js - About 5 hrs to fix

                    Function $get has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          function($rootScope, $location, $routeParams, $q, $injector, $http, $templateCache, $sce) {
                    
                        /**
                         * @ngdoc object
                         * @name ngRoute.$route
                    Severity: Major
                    Found in app/lib/angular-route/angular-route.js - About 4 hrs to fix

                      Function resourceFactory has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function resourceFactory(url, paramDefaults, actions) {
                            var route = new Route(url);
                      
                            actions = extend({}, DEFAULT_ACTIONS, actions);
                      
                      
                      Severity: Major
                      Found in app/lib/angular-resource/angular-resource.js - About 4 hrs to fix

                        File Gruntfile.js has 351 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*!
                         * Bootstrap's Gruntfile
                         * http://getbootstrap.com
                         * Copyright 2013-2014 Twitter, Inc.
                         * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
                        Severity: Minor
                        Found in app/lib/bootstrap/Gruntfile.js - About 4 hrs to fix

                          Function defaultPrefilter has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function defaultPrefilter( elem, props, opts ) {
                              /* jshint validthis: true */
                              var prop, value, toggle, tween, hooks, oldfire, display,
                                  anim = this,
                                  orig = {},
                          Severity: Major
                          Found in app/lib/jquery/jquery.js - About 3 hrs to fix

                            Function link has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                link: function(scope, element, attrs, ctrls) {
                                  var datepickerCtrl = ctrls[0], ngModel = ctrls[1];
                            
                                  if (!ngModel) {
                                    return; // do nothing if no ng-model
                            Severity: Major
                            Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 3 hrs to fix

                              Function link has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  link: function(scope, element, attrs, ctrls) {
                                    var datepickerCtrl = ctrls[0], ngModel = ctrls[1];
                              
                                    if (!ngModel) {
                                      return; // do nothing if no ng-model
                              Severity: Major
                              Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 3 hrs to fix

                                Function TzDate has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                angular.mock.TzDate = function (offset, timestamp) {
                                  var self = new Date(0);
                                  if (angular.isString(timestamp)) {
                                    var tsStr = timestamp;
                                
                                
                                Severity: Major
                                Found in app/lib/angular-mocks/angular-mocks.js - About 3 hrs to fix

                                  Function htmlParser has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function htmlParser( html, handler ) {
                                    var index, chars, match, stack = [], last = html;
                                    stack.last = function() { return stack[ stack.length - 1 ]; };
                                  
                                    while ( html ) {
                                  Severity: Major
                                  Found in app/lib/angular-sanitize/angular-sanitize.js - About 3 hrs to fix

                                    Function name has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            Resource[name] = function(a1, a2, a3, a4) {
                                              var params = {}, data, success, error;
                                    
                                              /* jshint -W086 */ /* (purposefully fall through case statements) */
                                              switch(arguments.length) {
                                    Severity: Major
                                    Found in app/lib/angular-resource/angular-resource.js - About 3 hrs to fix

                                      Function trigger has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          trigger: function( event, data, elem, onlyHandlers ) {
                                      
                                              var i, cur, tmp, bubbleType, ontype, handle, special,
                                                  eventPath = [ elem || document ],
                                                  type = hasOwn.call( event, "type" ) ? event.type : event,
                                      Severity: Major
                                      Found in app/lib/jquery/jquery.js - About 3 hrs to fix

                                        Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function Animation( elem, properties, options ) {
                                            var result,
                                                stopped,
                                                index = 0,
                                                length = animationPrefilters.length,
                                        Severity: Major
                                        Found in app/lib/jquery/jquery.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language