Showing 14,752 of 14,752 total issues
Avoid deeply nested control flow statements. Open
Open
if (!($propertySch && it.util.schemaHasRules($propertySch, it.RULES.all))) {
$required[$required.length] = $property;
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
target.path = "/" + relative.path;
} else if (!base.path) {
target.path = relative.path;
} else {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($breakOnError) {
out += ' if (!' + ($nextValid) + ') break; ';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (it.opts.messages !== false) {
out += ' , message: \'';
if (it.opts._errorDataPathProperty) {
out += 'is a required property';
} else {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($typeIsArray) {
out += '' + ($typeSchema.join(","));
} else {
out += '' + ($typeSchema);
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (it.util.varOccurences($code, $nextData) < 2) {
$code = it.util.varReplace($code, $nextData, $passData);
var $useData = $passData;
} else {
var $useData = $nextData;
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
while ($i < l2) {
$propertyKey = arr2[$i += 1];
if ($i) {
out += ' || ';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (it.async) {
out += ' throw new ValidationError([' + (__err) + ']); ';
} else {
out += ' validate.errors = [' + (__err) + ']; return false; ';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (it.opts.verbose) {
out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (it.async) {
out += ' throw new ValidationError(vErrors); ';
} else {
out += ' validate.errors = vErrors; return false; ';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
while (i2 < l2) {
$propertyKey = arr2[i2 += 1];
var $prop = it.util.getProperty($propertyKey),
$missingProperty = it.util.escapeQuotes($propertyKey),
$useData = $data + $prop;
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (it.createErrors !== false) {
out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
if (it.opts.messages !== false) {
out += ' , message: \'';
if (it.opts._errorDataPathProperty) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($rulesGroup.type) {
out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { ';
}
- Create a ticketCreate a ticket
Function baseIsEqual
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($breakOnError) {
out += ' if (true) { ';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($breakOnError) {
out += ' ' + ($closingBraces1) + ' ';
$closingBraces1 = '';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($breakOnError) {
out += ' if (' + ($nextValid) + ') { ';
$closingBraces += '}';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (it.opts.verbose) {
out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
}
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($rulesGroup.type) {
out += ' } ';
if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {
out += ' else { ';
var $schemaPath = it.schemaPath + '.type',
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if ($breakOnError) {
out += ' if (' + ($nextValid) + ') { ';
$closingBraces += '}';
}
- Create a ticketCreate a ticket