feigi/TemplatePrefetch

View on GitHub
src/main/template-prefetch.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

                function ($rootScope, $state, $stateParams, $templateCache, $http, $log) {

                    $log.debug('TemplatePrefetch: Instantiated');

                    var prefetch = function (fromState, fromParams) {
Severity: Major
Found in src/main/template-prefetch.js - About 2 hrs to fix

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

                        var prefetch = function (fromState, fromParams) {
    
                            $log.debug('TemplatePrefetch: Called with fromState ' + fromState + ', fromParams ' + JSON.stringify(fromParams));
    
                            var edge = findRouteWithFrom(createNode(fromState, fromParams));
    Severity: Minor
    Found in src/main/template-prefetch.js - About 1 hr to fix

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

                      function ($rootScope, $state, $stateParams, $templateCache, $http, $log) {
      Severity: Minor
      Found in src/main/template-prefetch.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status