arey/angular-musicbrainz

View on GitHub

Showing 290 of 632 total issues

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

'use strict';

var LIVERELOAD_PORT = 35730;
var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT });
var mountFolder = function (connect, dir) {
Severity: Minor
Found in Gruntfile.js - About 3 hrs to fix

    Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function Sizzle( selector, context, results, seed ) {
        var match, elem, m, nodeType,
            // QSA vars
            i, groups, old, nid, newContext, newSelector;
    
    
    Severity: Major
    Found in app/lib/jquery/jquery.js - About 3 hrs to fix

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

              function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
      
                var $modal = {};
      
                function getTemplatePromise(options) {
      Severity: Major
      Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 2 hrs to fix

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

                function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
        
                  var $modal = {};
        
                  function getTemplatePromise(options) {
        Severity: Major
        Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 2 hrs to fix

          File tooltip.js has 281 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* ========================================================================
           * Bootstrap: tooltip.js v3.1.1
           * http://getbootstrap.com/javascript/#tooltip
           * Inspired by the original jQuery.tipsy by Jason Frame
           * ========================================================================
          Severity: Minor
          Found in app/lib/bootstrap/js/tooltip.js - About 2 hrs to fix

            Function add has 68 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                add: function( elem, types, handler, data, selector ) {
            
                    var handleObjIn, eventHandle, tmp,
                        events, t, handleObj,
                        special, handlers, type, namespaces, origType,
            Severity: Major
            Found in app/lib/jquery/jquery.js - About 2 hrs to fix

              Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                  var bySet = setMatchers.length > 0,
                      byElement = elementMatchers.length > 0,
                      superMatcher = function( seed, context, xml, results, outermost ) {
                          var elem, j, matcher,
              Severity: Major
              Found in app/lib/jquery/jquery.js - About 2 hrs to fix

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

                    link: function(scope, element, attrs, paginationCtrl) {
                
                      // Setup configuration parameters
                      var maxSize,
                      boundaryLinks  = paginationCtrl.getAttributeValue(attrs.boundaryLinks,  config.boundaryLinks      ),
                Severity: Major
                Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap.js - About 2 hrs to fix

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

                      link: function(scope, element, attrs, paginationCtrl) {
                  
                        // Setup configuration parameters
                        var maxSize,
                        boundaryLinks  = paginationCtrl.getAttributeValue(attrs.boundaryLinks,  config.boundaryLinks      ),
                  Severity: Major
                  Found in app/lib/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 2 hrs to fix

                    Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function done( status, nativeStatusText, responses, headers ) {
                                var isSuccess, success, error, response, modified,
                                    statusText = nativeStatusText;
                    
                                // Called once
                    Severity: Major
                    Found in app/lib/jquery/jquery.js - About 2 hrs to fix

                      Function updateRoute has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function updateRoute() {
                            var next = parseRoute(),
                                last = $route.current;
                      
                            if (next && last && next.$$route === last.$$route
                      Severity: Major
                      Found in app/lib/angular-route/angular-route.js - About 2 hrs to fix

                        Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                            if ( postFilter && !postFilter[ expando ] ) {
                                postFilter = setMatcher( postFilter );
                            }
                            if ( postFinder && !postFinder[ expando ] ) {
                        Severity: Major
                        Found in app/lib/jquery/jquery.js - About 2 hrs to fix

                          Function $IntervalProvider has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          angular.mock.$IntervalProvider = function() {
                            this.$get = ['$rootScope', '$q',
                                 function($rootScope,   $q) {
                              var repeatFns = [],
                                  nextRepeatId = 0,
                          Severity: Major
                          Found in app/lib/angular-mocks/angular-mocks.js - About 2 hrs to fix

                            File angular-route.js has 270 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             * @license AngularJS v1.2.13
                             * (c) 2010-2014 Google, Inc. http://angularjs.org
                             * License: MIT
                             */
                            Severity: Minor
                            Found in app/lib/angular-route/angular-route.js - About 2 hrs to fix

                              Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      superMatcher = function( seed, context, xml, results, outermost ) {
                                          var elem, j, matcher,
                                              matchedCount = 0,
                                              i = "0",
                                              unmatched = seed && [],
                              Severity: Major
                              Found in app/lib/jquery/jquery.js - About 2 hrs to fix

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

                                       function($rootScope,   $q) {
                                    var repeatFns = [],
                                        nextRepeatId = 0,
                                        now = 0;
                                
                                
                                Severity: Major
                                Found in app/lib/angular-mocks/angular-mocks.js - About 2 hrs to fix

                                  File angular-sanitize.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /**
                                   * @license AngularJS v1.2.13
                                   * (c) 2010-2014 Google, Inc. http://angularjs.org
                                   * License: MIT
                                   */
                                  Severity: Minor
                                  Found in app/lib/angular-sanitize/angular-sanitize.js - About 2 hrs to fix

                                    Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            "CHILD": function( type, what, argument, first, last ) {
                                                var simple = type.slice( 0, 3 ) !== "nth",
                                                    forward = type.slice( -4 ) !== "last",
                                                    ofType = what === "of-type";
                                    
                                    
                                    Severity: Major
                                    Found in app/lib/jquery/jquery.js - About 2 hrs to fix

                                      Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          Deferred: function( func ) {
                                              var tuples = [
                                                      // action, add listener, listener list, final state
                                                      [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                                      [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                                      Severity: Major
                                      Found in app/lib/jquery/jquery.js - About 2 hrs to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                                if ( forward && useCache ) {
                                                                    // Seek `elem` from a previously-cached index
                                                                    outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                                    cache = outerCache[ type ] || [];
                                                                    nodeIndex = cache[0] === dirruns && cache[1];
                                        Severity: Critical
                                        Found in app/lib/jquery/jquery.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language