Showing 5 of 53 total issues
Tree
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@jsonObject
@toJson
export class Tree<
K extends number | string | V | Comparable<K> | any = number | string,
V extends number | string | Convertable<K> | any = any
Node
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@jsonObject
export class Node<
K extends number | string | V | Comparable<K> | any = number | string,
V extends number | string | Convertable<K> | any = any
> {
Consider simplifying this complex logical expression. Open
Open
if (((this.r && this.r.r && this.r.r.h) || 0) > ((this.r && this.r.l && this.r.l.h) || 0)) {
return this.lrotate();
} else return this.rlrotate();
Consider simplifying this complex logical expression. Open
Open
if (((this.l && this.l.l && this.l.l.h) || 0) > ((this.l && this.l.r && this.l.r.h) || 0)) {
return this.rrotate();
} else return this.lrrotate();
Avoid too many return
statements within this function. Open
Open
} else return this;