constar/infor-you-mation

View on GitHub
app/bower_components/angular-route/angular-route.js

Summary

Maintainability
F
3 days
Test Coverage

Function $RouteProvider has 231 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function $RouteProvider() {
  isArray = angular.isArray;
  isObject = angular.isObject;

  function inherit(parent, extra) {
Severity: Major
Found in app/bower_components/angular-route/angular-route.js - About 1 day to fix

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

          function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
    
        /**
         * @ngdoc service
         * @name $route
    Severity: Major
    Found in app/bower_components/angular-route/angular-route.js - About 6 hrs to fix

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

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

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

        function ngViewFactory($route, $anchorScroll, $animate) {
          return {
            restrict: 'ECA',
            terminal: true,
            priority: 400,
        Severity: Major
        Found in app/bower_components/angular-route/angular-route.js - About 2 hrs to fix

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

              link: function(scope, $element, attr, ctrl, $transclude) {
                  var currentScope,
                      currentElement,
                      previousLeaveAnimation,
                      autoScrollExp = attr.autoscroll,
          Severity: Minor
          Found in app/bower_components/angular-route/angular-route.js - About 1 hr to fix

            Function commitRoute has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function commitRoute() {
                  var lastRoute = $route.current;
                  var nextRoute = preparedRoute;
            
                  if (preparedRouteIsUpdateOnly) {
            Severity: Minor
            Found in app/bower_components/angular-route/angular-route.js - About 1 hr to fix

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

                    function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
              Severity: Major
              Found in app/bower_components/angular-route/angular-route.js - About 50 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/bower_components/angular-route/angular-route.js - About 35 mins to fix

                  There are no issues that match your filters.

                  Category
                  Status