Showing 9 of 69 total issues
Function evaluateCompareOp
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
async function evaluateCompareOp<C extends Context, Ignore>(expressionValue: ExtendedCompareOp<any, any, any>,
expressionKey: string, contextValue: any,
context: C, validation: boolean)
Avoid too many return
statements within this function. Open
Open
return expressionValue.nin.map((value) => computeValue(context, validation, value, expressionKey))
.indexOf(contextValue) < 0;
Avoid too many return
statements within this function. Open
Open
return evaluateCompareOp<C, Ignore>(
(expression as PropertyCompareOps<C, Ignore>)
[expressionKey as any as keyof PropertyCompareOps<C, Ignore>] as
unknown as ExtendedCompareOp<any, any, any>,
expressionKey, contextValue, context, validation);
Avoid too many return
statements within this function. Open
Open
return contextValue > gtValue;
Avoid too many return
statements within this function. Open
Open
return Boolean(contextValue.match(new RegExp(regexpiValue, `i`)));
Avoid too many return
statements within this function. Open
Open
return contextValue < ltValue;
Avoid too many return
statements within this function. Open
Open
return Boolean(contextValue.match(new RegExp(regexpValue)));
Avoid too many return
statements within this function. Open
Open
return contextValue >= gteValue;
Avoid too many return
statements within this function. Open
Open
return contextValue <= lteValue;