src/core/valdr-service.js
Function $get
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($log, $injector, $rootScope, $http, valdrEvents, valdrUtil, valdrClasses) {
// inject all validators
angular.forEach(validatorNames, function (validatorName) {
var validator = $injector.get(validatorName);
Function validate
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function (typeName, fieldName, value) {
var validResult = { valid: true },
typeConstraints = constraintsForType(typeName);
Function $get
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ($log, $injector, $rootScope, $http, valdrEvents, valdrUtil, valdrClasses) {