src/ngMessages/messages.js
Function NgMessagesCtrl
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$element', '$scope', '$attrs', function NgMessagesCtrl($element, $scope, $attrs) {
var ctrl = this;
var latestKey = 0;
var nextAttachId = 0;
Function ngMessageDirectiveFactory
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ngMessageDirectiveFactory(isDefault) {
return ['$animate', function($animate) {
return {
restrict: 'AE',
transclude: 'element',
File messages.js
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var forEach;
var isArray;
var isString;
Function link
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, ngMessagesCtrl, $transclude) {
var commentNode, records, staticExp, dynamicExp;
if (!isDefault) {
commentNode = element[0];
Function render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.render = function(collection) {
collection = collection || {};
renderLater = false;
cachedCollection = collection;
Avoid deeply nested control flow statements. Open
Open
if (matchedKeys[key]) return;
Function link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, ngMessagesCtrl, $transclude) {