angular/angular.js

View on GitHub
src/ng/directive/ngInclude.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function ngIncludeDirective has 70 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                  function($templateRequest,   $anchorScroll,   $animate) {
  return {
    restrict: 'ECA',
    priority: 400,
    terminal: true,
Severity: Major
Found in src/ng/directive/ngInclude.js - About 2 hrs to fix

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

        compile: function(element, attr) {
          var srcExp = attr.ngInclude || attr.src,
              onloadExp = attr.onload || '',
              autoScrollExp = attr.autoscroll;
    
    
    Severity: Major
    Found in src/ng/directive/ngInclude.js - About 2 hrs to fix

      Function ngIncludeWatchAction has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              scope.$watch(srcExp, function ngIncludeWatchAction(src) {
                var afterAnimation = function(response) {
                  if (response !== false && isDefined(autoScrollExp) &&
                    (!autoScrollExp || scope.$eval(autoScrollExp))) {
                      $anchorScroll();
      Severity: Minor
      Found in src/ng/directive/ngInclude.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status