RackHD/on-core

View on GitHub
lib/common/validatable.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function ValidatableFactory has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function ValidatableFactory (Promise, _, jsonschema, Errors, assert) {
    var Validator = jsonschema.Validator,
        validator = new Validator();

    function Validatable(schema) {
Severity: Minor
Found in lib/common/validatable.js - About 1 hr to fix

    Function ValidatableFactory has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function ValidatableFactory (Promise, _, jsonschema, Errors, assert) {
    Severity: Minor
    Found in lib/common/validatable.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status