arey/angular-musicbrainz

View on GitHub

Showing 290 of 632 total issues

Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    domManip: function( args, callback ) {

        // Flatten any nested arrays
        args = concat.apply( [], args );

Severity: Major
Found in app/lib/jquery/jquery.js - About 2 hrs to fix

    Function $Browser has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    angular.mock.$Browser = function() {
      var self = this;
    
      this.isMock = true;
      self.$$url = "http://server/";
    Severity: Major
    Found in app/lib/angular-mocks/angular-mocks.js - About 2 hrs to fix

      Function init has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          init = jQuery.fn.init = function( selector, context ) {
              var match, elem;
      
              // HANDLE: $(""), $(null), $(undefined), $(false)
              if ( !selector ) {
      Severity: Major
      Found in app/lib/jquery/jquery.js - About 2 hrs to fix

        Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function ajaxConvert( s, response, jqXHR, isSuccess ) {
            var conv2, current, conv, tmp, prev,
                converters = {},
                // Work with a copy of dataTypes in case we need to modify it for conversion
                dataTypes = s.dataTypes.slice();
        Severity: Major
        Found in app/lib/jquery/jquery.js - About 2 hrs to fix

          Function $httpBackend has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function $httpBackend(method, url, data, callback, headers, timeout, withCredentials) {
              var xhr = new MockXhr(),
                  expectation = expectations[0],
                  wasExpected = false;
          
          
          Severity: Major
          Found in app/lib/angular-mocks/angular-mocks.js - About 2 hrs to fix

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

                  link: function (scope, element, attrs) {
            
                    var initialAnimSkip = true;
                    var currentTransition;
            
            
            Severity: Major
            Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 2 hrs to fix

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

                    link: function (scope, element, attrs) {
              
                      var initialAnimSkip = true;
                      var currentTransition;
              
              
              Severity: Major
              Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 2 hrs to fix

                Function fullTextSearch has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            'fullTextSearch': function (from, size, text) {
                                return es.search({
                                    index: 'musicalbum',
                                    type: 'album',
                                    body: {
                Severity: Major
                Found in app/js/services.js - About 2 hrs to fix

                  Function $LogProvider has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  angular.mock.$LogProvider = function() {
                    var debug = true;
                  
                    function concat(array1, array2, index) {
                      return array1.concat(Array.prototype.slice.call(array2, index));
                  Severity: Major
                  Found in app/lib/angular-mocks/angular-mocks.js - About 2 hrs to fix

                    Function data has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        data: function( key, value ) {
                            var i, name, data,
                                elem = this[ 0 ],
                                attrs = elem && elem.attributes;
                    
                    
                    Severity: Major
                    Found in app/lib/jquery/jquery.js - About 2 hrs to fix

                      Function remove has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          remove: function( elem, types, handler, selector, mappedTypes ) {
                      
                              var j, origCount, tmp,
                                  events, t, handleObj,
                                  special, handlers, type, namespaces, origType,
                      Severity: Minor
                      Found in app/lib/jquery/jquery.js - About 2 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                        if ( ( mappedTypes || origType === handleObj.origType ) &&
                                            ( !handler || handler.guid === handleObj.guid ) &&
                                            ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                            ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                            handlers.splice( j, 1 );
                        Severity: Critical
                        Found in app/lib/jquery/jquery.js - About 2 hrs to fix

                          Function open has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                    $modal.open = function (modalOptions) {
                          
                                      var modalResultDeferred = $q.defer();
                                      var modalOpenedDeferred = $q.defer();
                          
                          
                          Severity: Minor
                          Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 2 hrs to fix

                            Function show has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              Tooltip.prototype.show = function () {
                                var e = $.Event('show.bs.' + this.type)
                            
                                if (this.hasContent() && this.enabled) {
                                  this.$element.trigger(e)
                            Severity: Minor
                            Found in app/lib/bootstrap/dist/js/bootstrap.js - About 2 hrs to fix

                              Function open has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                        $modal.open = function (modalOptions) {
                              
                                          var modalResultDeferred = $q.defer();
                                          var modalOpenedDeferred = $q.defer();
                              
                              
                              Severity: Minor
                              Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 2 hrs to fix

                                Function show has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Tooltip.prototype.show = function () {
                                    var e = $.Event('show.bs.' + this.type)
                                
                                    if (this.hasContent() && this.enabled) {
                                      this.$element.trigger(e)
                                Severity: Minor
                                Found in app/lib/bootstrap/js/tooltip.js - About 2 hrs to fix

                                  Function buildFragment has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      buildFragment: function( elems, context, scripts, selection ) {
                                          var elem, tmp, tag, wrap, contains, j,
                                              fragment = context.createDocumentFragment(),
                                              nodes = [],
                                              i = 0,
                                  Severity: Minor
                                  Found in app/lib/jquery/jquery.js - About 1 hr to fix

                                    Function send has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                send: function( headers, complete ) {
                                                    var i,
                                                        xhr = options.xhr(),
                                                        id = ++xhrId;
                                    
                                    
                                    Severity: Minor
                                    Found in app/lib/jquery/jquery.js - About 1 hr to fix

                                      Function ngViewFactory has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function ngViewFactory(   $route,   $anchorScroll,   $animate) {
                                        return {
                                          restrict: 'ECA',
                                          terminal: true,
                                          priority: 400,
                                      Severity: Minor
                                      Found in app/lib/angular-route/angular-route.js - About 1 hr to fix

                                        Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function tokenize( selector, parseOnly ) {
                                            var matched, match, tokens, type,
                                                soFar, groups, preFilters,
                                                cached = tokenCache[ selector + " " ];
                                        
                                        
                                        Severity: Minor
                                        Found in app/lib/jquery/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language