Showing 76 of 181 total issues
Avoid too many return
statements within this function. Open
return new SmalltalkFloat(twoArgumentDoubleOperator(f, f2));
Avoid too many return
statements within this function. Open
return `(${expr.operatorName} ${exprListString})`;
Avoid too many return
statements within this function. Open
return arg0.value.localeCompare(arg1.value) < 0
? globalInfo.trueValue
: globalInfo.falseValue;
Avoid too many return
statements within this function. Open
return `(cond ${exprPairListString})`;
Avoid too many return
statements within this function. Open
return `(${feAsString} ${expr.expressionList
.map((x) => this.objectToString_ApostrophesToQuoteKeywords(x))
.join(' ')})`;
Avoid too many return
statements within this function. Open
return new SmalltalkArray(n);
Avoid too many return
statements within this function. Open
return `(let* (${bindingsString}) ${this.objectToString_ApostrophesToQuoteKeywords(
expr.expression
)})`;
Avoid too many return
statements within this function. Open
return `(lambda ${expr.argList} ${this.objectToString_ApostrophesToQuoteKeywords(
expr.body
)})`;
Avoid too many return
statements within this function. Open
return `(call/cc ${this.objectToString_ApostrophesToQuoteKeywords(expr.body)})`;
Avoid too many return
statements within this function. Open
return new SmalltalkInteger(a.length);
Avoid too many return
statements within this function. Open
return `(${feAsString})`;
Function constructor
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
constructor(
v: string | undefined = undefined,
expr: IPrologExpression | undefined = undefined // To conveniently make a substitution with a single entry.
) {
if (typeof v !== 'undefined' && typeof expr !== 'undefined') {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function RenameVariables
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public RenameVariables(
variablesToAvoid: IImmutableSet<IPrologVariable>,
globalInfo: PrologGlobalInfo
): PrologClause {
const oldVariables = this.FindBindingVariables();
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function expressionToSExpression
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private expressionToSExpression(
expr: IExpression<ISExpression>,
globalInfo: IGlobalInfo<ISExpression>
): ISExpression {
if (typeof globalInfo.tokenizer === 'undefined') {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function constructor
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
constructor(
v: string | undefined = undefined,
expr: ILCExpression | undefined = undefined // To conveniently make a substitution with a single entry.
) {
if (typeof v !== 'undefined' && typeof expr !== 'undefined') {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function evaluate
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public evaluate(
globalInfo: IGlobalInfo<ICLUValue>,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
localEnvironment?: IEnvironmentFrame<ICLUValue>,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"