netceteragroup/valdr

View on GitHub
src/core/valdr-service.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function $get has 82 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function ($log, $injector, $rootScope, $http, valdrEvents, valdrUtil, valdrClasses) {

          // inject all validators
          angular.forEach(validatorNames, function (validatorName) {
            var validator = $injector.get(validatorName);
Severity: Major
Found in src/core/valdr-service.js - About 3 hrs to fix

    Function validate has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                validate: function (typeName, fieldName, value) {
    
                  var validResult = { valid: true },
                    typeConstraints = constraintsForType(typeName);
    
    
    Severity: Minor
    Found in src/core/valdr-service.js - About 1 hr to fix

      Function $get has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              function ($log, $injector, $rootScope, $http, valdrEvents, valdrUtil, valdrClasses) {
      Severity: Major
      Found in src/core/valdr-service.js - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status