mbroadst/thinkagain

View on GitHub
lib/types/keywords.js

Summary

Maintainability
A
1 hr
Test Coverage

Function compile has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  compile: schema => {
    let Class = CLASSES[schema];
    return (data, path, parent) => {
      if (Class === undefined) {
        this.errors = [ 'invalid type specified for coercion: ' + schema ];
Severity: Minor
Found in lib/types/keywords.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return false;
    Severity: Major
    Found in lib/types/keywords.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status