Function selectRow
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
selectRow(event, index, row) {
if (this.options.selectable) {
if (this.options.multiSelect) {
const isShiftKeyDown = event.shiftKey;
Function selectRowsBetween
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
selectRowsBetween(index) {
const reverse = index < this.prevIndex;
const selecteds = [];
for (let i = 0, len = this.body.rows.length; i < len; i += 1) {
Function selectRowsBetween
has 31 lines of code (exceeds 25 allowed). Consider refactoring.
selectRowsBetween(index) {
const reverse = index < this.prevIndex;
const selecteds = [];
for (let i = 0, len = this.body.rows.length; i < len; i += 1) {
Function keyDown
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
keyDown(ev, index, row) {
if (KEYS[ev.keyCode]) {
ev.preventDefault();
}
Avoid deeply nested control flow statements.
if (this.options.multiSelectOnShift && this.selected.length === 1) {
this.selected.splice(0, 1);
}
There are no issues that match your filters.