angular/angular.js

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

Summary

Maintainability
A
2 hrs
Test Coverage

Function ngRefDirective has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var ngRefDirective = ['$parse', function($parse) {
  return {
    priority: -1, // Needed for compatibility with element transclusion on the same element
    restrict: 'A',
    compile: function(tElement, tAttrs) {
Severity: Minor
Found in src/ng/directive/ngRef.js - About 1 hr to fix

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

        compile: function(tElement, tAttrs) {
          // Get the expected controller name, converts <data-some-thing> into "someThing"
          var controllerName = directiveNormalize(nodeName_(tElement));
    
          // Get the expression for value binding
    Severity: Minor
    Found in src/ng/directive/ngRef.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status