src/main/webapp/js/directives.js
Function link
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem, attr, ngModelCtrl) {
var fieldName = attr.unique;
if(fieldName!="email" && fieldName!="domain") {
console.log("unique needs to be email/domain"); return;
}