lib/types/keywords.js
Function compile
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: schema => {
let Class = CLASSES[schema];
return (data, path, parent) => {
if (Class === undefined) {
this.errors = [ 'invalid type specified for coercion: ' + schema ];
Avoid too many return
statements within this function. Open
Open
return false;